sysfs, kernfs: add skeletons for kernfs
Core sysfs implementation will be separated into kernfs so that it can be used by other non-kobject users. This patch creates fs/kernfs/ directory and makes boilerplate changes. kernfs interface will be directly based on sysfs_dirent and its forward declaration is moved to include/linux/kernfs.h which is included from include/linux/sysfs.h. sysfs core implementation will be gradually separated out and moved to kernfs. This patch doesn't introduce any functional changes. v2: mount.c added. Signed-off-by:Tejun Heo <tj@kernel.org> Cc: linux-fsdevel@vger.kernel.org Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- fs/Makefile 1 addition, 1 deletionfs/Makefile
- fs/kernfs/Makefile 5 additions, 0 deletionsfs/kernfs/Makefile
- fs/kernfs/dir.c 9 additions, 0 deletionsfs/kernfs/dir.c
- fs/kernfs/file.c 9 additions, 0 deletionsfs/kernfs/file.c
- fs/kernfs/inode.c 9 additions, 0 deletionsfs/kernfs/inode.c
- fs/kernfs/mount.c 9 additions, 0 deletionsfs/kernfs/mount.c
- fs/kernfs/symlink.c 9 additions, 0 deletionsfs/kernfs/symlink.c
- include/linux/kernfs.h 12 additions, 0 deletionsinclude/linux/kernfs.h
- include/linux/sysfs.h 1 addition, 2 deletionsinclude/linux/sysfs.h
fs/kernfs/Makefile
0 → 100644
fs/kernfs/dir.c
0 → 100644
fs/kernfs/file.c
0 → 100644
fs/kernfs/inode.c
0 → 100644
fs/kernfs/mount.c
0 → 100644
fs/kernfs/symlink.c
0 → 100644
include/linux/kernfs.h
0 → 100644
Please register or sign in to comment