Re: Where is kdbg_control()?
Re: Where is kdbg_control()?
- Subject: Re: Where is kdbg_control()?
- From: John Dalgliesh <email@hidden>
- Date: Fri, 6 Oct 2006 17:24:44 +1000 (EST)
On Fri, 6 Oct 2006, Rick Mann wrote:
I'm trying to learn how sysctl() with KERN_KDEBUG works, by reading the
source for kern_sysctl(). It ends up calling kdbg_control(), but for the life
of me I can't find that.
JohnsMBP:~/Darwin/xnu-792 johnd$ grep -r kdbg_control *
...
bsd/kern/kdebug.c:kdbg_control(int *name, u_int namelen, user_addr_t where, size_t *sizep)
...
Looks like it's in kdebug.c. I didn't search the latest xnu release but
I'm pretty sure it'd be the same in the latest one.
Is this stuff documented anywhere (other than the source)?
I very much doubt it. There seems to be plenty of other stuff that needs
documenting with higher priority than this.
Where is the
source?
Where did you get the source for kern_sysctl? Anyway it's here:
<http://www.opensource.apple.com/darwinsource/>
Although the kernel (xnu) only seems to be present under PPC, hmmm..
Thanks!
--
Rick
No worries.
{P^/
_______________________________________________
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