• Tejun Heo's avatar
    sysfs, kernfs: introduce kernfs_notify() · 024f6471
    Tejun Heo authored
    Introduce kernfs interface to wake up poll(2) which takes and returns
    sysfs_notify_dirent() is renamed to kernfs_notify() and sysfs_notify()
    is updated so that it doesn't directly grab sysfs_mutex but acquires
    the target sysfs_dirents using sysfs_get_dirent().
    sysfs_notify_dirent() is reimplemented as a dumb inline wrapper around
    This patch doesn't introduce any behavior changes.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
kernfs.h 4.34 KB