Info

struct nameidata {

struct dentry *dentry; struct vfsmount *mnt; struct qstr last; unsigned int flags;

□ dentry and mnt contain the data of the required filesystem entry after completion of lookup.

□ flags holds flags to fine-tune the lookup operation. I will come back to these when I describe the lookup algorithm.

□ last contains the name to be looked up. It is a quick string that, as described above, includes not only the string itself but also the length of the string and a hash value.

The kernel uses the path_lookup function to find any path or filename.

Continue reading here: Fsnameic

Was this article helpful?

0 0