Re: sysctl in kexts
Re: sysctl in kexts
- Subject: Re: sysctl in kexts
- From: Mike Smith <email@hidden>
- Date: Mon, 8 Aug 2005 11:44:01 -0700
Much of this information is exposed by KPIs. What are you trying to
achieve?
= Mike
On Aug 8, 2005, at 4:15 AM, email@hidden wrote:
Looking to run this example code
int i, mib[4];
size_t len;
struct kinfo_proc kp;
/* Fill out the first three components of the mib */
len = 4;
sysctlnametomib("kern.proc.pid", mib, &len);
/* Fetch and print entries for pid's < 100 */
for (i = 0; i < 100; i++) {
mib[3] = i;
len = sizeof(kp);
if (sysctl(mib, 4, &kp, &len, NULL, 0) == -1)
perror("sysctl");
else if (len > 0)
printkproc(&kp);
}
But in kextload -t does find the sysctl library. Where may it be
hiding.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden