summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTejun Heo2013-11-28 20:54:24 +0100
committerGreg Kroah-Hartman2013-11-30 02:48:14 +0100
commit496f73944a4a974f89d48920bf368aec8841b195 (patch)
treeceaf60c390103523edecb4a3d7ff3f79b3f50171 /tools
parentsysfs, kernfs: remove SYSFS_KOBJ_BIN_ATTR (diff)
downloadkernel-qcow2-linux-496f73944a4a974f89d48920bf368aec8841b195.tar.gz
kernel-qcow2-linux-496f73944a4a974f89d48920bf368aec8841b195.tar.xz
kernel-qcow2-linux-496f73944a4a974f89d48920bf368aec8841b195.zip
sysfs, kernfs: introduce kernfs_create_file[_ns]()
Introduce kernfs interface to create a file which takes and returns sysfs_dirents. The actual file creation part is separated out from sysfs_add_file_mode_ns() into kernfs_create_file_ns(). The former now only decides the kernfs_ops to use and the file's size and invokes the latter. 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 'tools')
0 files changed, 0 insertions, 0 deletions