Re: getting process info for a kext
Re: getting process info for a kext
- Subject: Re: getting process info for a kext
- From: Garth Cummings <email@hidden>
- Date: Tue, 10 Jun 2003 16:49:49 -0700
Hi all,
Since this flavor of question has been cropping up lately, it may be
time to reiterate a point about kernel programming interfaces.
If a function is not in Kernel.framework/Headers/, you can't use it in
a kernel extension. And, if a function is defined for kernel use only,
you can't use it in user space.
Now back to our regular scheduled email.
--gc
On Tuesday, June 10, 2003, at 01:33 PM, Chris Silverberg wrote:
Hi folks
I have an existing kext that needs to be modified slightly to look at
process information. The process information I need is performed
elsewhere
by calling 'sysctl' ala:
mib[0] = CTL_KERN;
mib[1] = KERN_PROC;
mib[2] = KERN_PROC_ALL;
error = sysctl(mib, 3, procInfo, &buffersize, NULL, NULL);
This code works fine in the user land application, but now I want to
do the
same in the kext. It doesn't appear that I can directly call 'sysctl'
from
a kext, so can anyone help me determine the proper way of retrieving
this
information? Advice is greatly appreciated.
thanks,
Chris
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.