Directory Traversal

The lookup method of sysfs_dir_inode_operations is the basic building block for directory traversal. We therefore need to have a closer look at sysfs_lookup. Figure 10-16 provides the code flow diagram.

sysfs_lookup 1

sysfs_find_dirent

sysfs_get_inode

Update and rehash dentry

Continue reading here: Figure 1016 Code flow diagram for sysfslookup

Was this article helpful?

0 0