[PATCH 11/34] sysfs, kernfs: introduce kernfs_create_file[_ns]()

2013-11-28 Thread Tejun Heo
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

[PATCH 11/34] sysfs, kernfs: introduce kernfs_create_file[_ns]()

2013-11-28 Thread Tejun Heo
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