• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
vendor code in kernel extension and application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vendor code in kernel extension and application


  • Subject: vendor code in kernel extension and application
  • From: David A Rowland <email@hidden>
  • Date: Sat, 13 May 2006 16:51:10 -0700

Title: vendor code in kernel extension and application
When I do this in my kernel extension:

    if (kev_vendor_code_find(BUNDLENAME, &vendorCode) == 0)

it returns with no error and fills in vendorCode with 1000.

When the kernel extension is loaded and initializated I do this in my application:
open a socket

        fd = socket(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL);
which succeeds, and then this:


    int result = 0;
   
struct kev_vendor_code vc;
    strcpy(vc.vendor_string, BUNDLENAME);
    result = ioctl(fd, SIOCGKEVVENDOR, &vc);

It returns a result of -1.

BUNDLENAME is the reverse DNS name of the extension.


¿Qué pasa? or better, ¿Porqué no pasa?

David
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: vendor code in kernel extension and application
      • From: Joe Pallas <email@hidden>
  • Prev by Date: Re: CFHTTPMessageAddAuthentication query
  • Next by Date: Re: vendor code in kernel extension and application
  • Previous by thread: Re: kernel events
  • Next by thread: Re: vendor code in kernel extension and application
  • Index(es):
    • Date
    • Thread