diff options
author | Tejun Heo <tj@kernel.org> | 2013-11-24 09:54:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-27 16:28:24 -0500 |
commit | b8441ed279bff09a0a5ddeacf8f4087d2fb424ca (patch) | |
tree | 2ed104d72ece4726d8f6fe2a8ebdd3c7a37bba11 /include/linux/sysfs.h | |
parent | ae2108ad32f5ca55e9895d5597e6552be1607569 (diff) |
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>
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 362a34d27e64..e17381a92e1a 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #ifndef _SYSFS_H_ | 12 | #ifndef _SYSFS_H_ |
13 | #define _SYSFS_H_ | 13 | #define _SYSFS_H_ |
14 | 14 | ||
15 | #include <linux/kernfs.h> | ||
15 | #include <linux/compiler.h> | 16 | #include <linux/compiler.h> |
16 | #include <linux/errno.h> | 17 | #include <linux/errno.h> |
17 | #include <linux/list.h> | 18 | #include <linux/list.h> |
@@ -175,8 +176,6 @@ struct sysfs_ops { | |||
175 | ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t); | 176 | ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t); |
176 | }; | 177 | }; |
177 | 178 | ||
178 | struct sysfs_dirent; | ||
179 | |||
180 | #ifdef CONFIG_SYSFS | 179 | #ifdef CONFIG_SYSFS |
181 | 180 | ||
182 | int sysfs_schedule_callback(struct kobject *kobj, void (*func)(void *), | 181 | int sysfs_schedule_callback(struct kobject *kobj, void (*func)(void *), |