• 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
Re: vendor code in kernel extension and application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vendor code in kernel extension and application


  • Subject: Re: vendor code in kernel extension and application
  • From: Joe Pallas <email@hidden>
  • Date: Sat, 13 May 2006 20:19:21 -0700


On May 13, 2006, at 4:51 PM, David A Rowland wrote:

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.

Try using SYSPROTO_EVENT instead of SYSPROTO_CONTROL. That's what the documentation shows.

joe

 _______________________________________________
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

References: 
 >vendor code in kernel extension and application (From: David A Rowland <email@hidden>)

  • Prev by Date: vendor code in kernel extension and application
  • Next by Date: (no subject)
  • Previous by thread: vendor code in kernel extension and application
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread