diff options
author | 2013-11-23 17:21:50 -0500 | |
---|---|---|
committer | 2013-11-27 13:57:56 -0800 | |
commit | 5d0e26bb59a680a5d97db5b6629941603e8de229 (patch) | |
tree | 221776b29c3cdc947c5e8637856a111d1dc05368 /lib/kobject.c | |
parent | sysfs, kernfs: introduce kernfs_remove[_by_name[_ns]]() (diff) | |
download | wireguard-linux-5d0e26bb59a680a5d97db5b6629941603e8de229.tar.xz wireguard-linux-5d0e26bb59a680a5d97db5b6629941603e8de229.zip |
sysfs, kernfs: introduce kernfs_create_link()
Separate out kernfs symlink interface - kernfs_create_link() - which
takes and returns sysfs_dirents, from sysfs_do_create_link_sd().
sysfs_do_create_link_sd() now just determines the parent and target
sysfs_dirents and invokes the new interface and handles dup warning.
This patch doesn't introduce behavior changes.
v2: Dummy implementation for !CONFIG_SYSFS updated to return -ENOSYS.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions