forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Cc: [email protected] Cc: Christoph Hellwig <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information
Showing
9 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Makefile for the kernfs pseudo filesystem | ||
# | ||
|
||
obj-y := mount.o inode.o dir.o file.o symlink.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* fs/kernfs/dir.c - kernfs directory implementation | ||
* | ||
* Copyright (c) 2001-3 Patrick Mochel | ||
* Copyright (c) 2007 SUSE Linux Products GmbH | ||
* Copyright (c) 2007, 2013 Tejun Heo <[email protected]> | ||
* | ||
* This file is released under the GPLv2. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* fs/kernfs/file.c - kernfs file implementation | ||
* | ||
* Copyright (c) 2001-3 Patrick Mochel | ||
* Copyright (c) 2007 SUSE Linux Products GmbH | ||
* Copyright (c) 2007, 2013 Tejun Heo <[email protected]> | ||
* | ||
* This file is released under the GPLv2. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* fs/kernfs/inode.c - kernfs inode implementation | ||
* | ||
* Copyright (c) 2001-3 Patrick Mochel | ||
* Copyright (c) 2007 SUSE Linux Products GmbH | ||
* Copyright (c) 2007, 2013 Tejun Heo <[email protected]> | ||
* | ||
* This file is released under the GPLv2. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* fs/kernfs/mount.c - kernfs mount implementation | ||
* | ||
* Copyright (c) 2001-3 Patrick Mochel | ||
* Copyright (c) 2007 SUSE Linux Products GmbH | ||
* Copyright (c) 2007, 2013 Tejun Heo <[email protected]> | ||
* | ||
* This file is released under the GPLv2. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* fs/kernfs/symlink.c - kernfs symlink implementation | ||
* | ||
* Copyright (c) 2001-3 Patrick Mochel | ||
* Copyright (c) 2007 SUSE Linux Products GmbH | ||
* Copyright (c) 2007, 2013 Tejun Heo <[email protected]> | ||
* | ||
* This file is released under the GPLv2. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* kernfs.h - pseudo filesystem decoupled from vfs locking | ||
* | ||
* This file is released under the GPLv2. | ||
*/ | ||
|
||
#ifndef __LINUX_KERNFS_H | ||
#define __LINUX_KERNFS_H | ||
|
||
struct sysfs_dirent; | ||
|
||
#endif /* __LINUX_KERNFS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters