Re: Getting the current PID inside kext?
Re: Getting the current PID inside kext?
- Subject: Re: Getting the current PID inside kext?
- From: "Justin C. Walker" <email@hidden>
- Date: Mon, 30 Oct 2006 21:31:38 -0800
On Oct 30, 2006, at 21:19 , Rick Mann wrote:
On Oct 30, 2006, at 21:13 , Justin C. Walker wrote:
Can I use <sys/proc.h> and extern_proc with current_proc() to get
at the pid?
You should review the KPI documents to see how to interact with
the kernel. Check the Apple developer website:
<http://developer.apple.com/documentation/Darwin/Conceptual/
KEXTConcept/KEXTConceptDependencies/kext_dependencies.html>
This document seems to indicate that sys is available,
It is available, and does represent what is in the kernel (as does
all of /usr/include/sys), but:
but when I include <sys/proc.h>, struct extern_proc does not get
declared. I can't seem to figure out why not, except perhaps the
compiler is including a different file than Command-D is opening up
for me.
Have you read up on the KPI? It is discussed in Apple's developer docs.
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Men are from Earth.
Women are from Earth.
Deal with it.
--------
_______________________________________________
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