Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: vnodes in kernel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vnodes in kernel




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 purposes?

 = Mike
_______________________________________________
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


References: 
 >vnodes in kernel (From: Mohammad Tabbara <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.