Re: vendor code in kernel extension and application
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