Thread (2 messages) 2 messages, 2 authors, 2012-02-08

parent inode from the current struct inode

From: Philipp Ittershagen <hidden>
Date: 2012-02-08 08:39:55

Hi Jack,

On Wed, Feb 8, 2012 at 8:48 AM, Jack David [off-list ref] wrote:
Hi All,

Is possible to get parent directory's inode structure from the current
inode? If so, how can I do that?
It should be possible to use the container_of macro to get the parent
dentry struct. Then, you can get the parent dentry d_parent and access
its inode. (Please correct me, if I'm wrong. I didn't test it).



Philipp
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help