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

vnodes in kernel



Hi everyone,

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. It looked like all I had to do was

struct p* = current_proc();
vn_getpath(p->p_textvp, buff, &len);

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?

TIA,

Mohammad Tabbara.


_______________________________________________ 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


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.