• Tejun Heo's avatar
    sysfs: implement sysfs_get_dentry() · 53e0ae92
    Tejun Heo authored
    Some sysfs operations require dentry and inode.  sysfs_get_dentry()
    looks up and gets dentry for the specified sysfs_dirent.  It finds the
    first ancestor with dentry attached and starts looking up dentries
    from there.
    
    Looking up from the nearest ancestor is necessary to support shadowed
    directories because we can't reliably lookup dentry for one of the
    shadows.  Dentries for each shadow will be pinned in memory such that
    they can serve as the starting point for dentry lookup.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    53e0ae92
sysfs.h 3.95 KB