On Dec 29, 2005, at 2:14 AM, Mohammad Tabbara wrote:
Any clues on why p_textvp is never set in struct proc? Basically, I
want some way to figure out the path of the task (i.e. the path
passed to exec) that is calling my kext.
There is no guarantee that a process' text has a backing vnode; nor
that there is a single node that would tell you what is actually
being run (consider the case of an interpreter).
and all would be well. I get the proc structure but p_textvp is
always zilch. In case this isn't possible, is there any cheap way
to figure what vnodes back the process's text section?
No. The proc structure is considered opaque, so you shouldn't be
grubbing around in it anyway.
What are you trying to achieve? Is proc_selfname() adequate for your
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden