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