diff options
author | 2010-05-03 16:23:15 -0500 | |
---|---|---|
committer | 2010-05-21 09:37:31 -0700 | |
commit | be867b194a3ae3c680c29521287ae49b4d44d420 (patch) | |
tree | 1b3ad125d02603c6a9cc4bb8ae518695d7c6a66d /include/linux/sysfs.h | |
parent | driver core: Implement ns directory support for device classes. (diff) | |
download | linux-be867b194a3ae3c680c29521287ae49b4d44d420.tar.gz linux-be867b194a3ae3c680c29521287ae49b4d44d420.tar.bz2 linux-be867b194a3ae3c680c29521287ae49b4d44d420.zip |
sysfs: Comment sysfs directory tagging logic
Add some in-line comments to explain the new infrastructure, which
was introduced to support sysfs directory tagging with namespaces.
I think an overall description someplace might be good too, but it
didn't really seem to fit into Documentation/filesystems/sysfs.txt,
which appears more geared toward users, rather than maintainers, of
sysfs.
(Tejun, please let me know if I can make anything clearer or failed
altogether to comment something that should be commented.)
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/sysfs.h')
-rw-r--r-- | include/linux/sysfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 976c4664b216..47f1c95b5298 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -178,6 +178,7 @@ struct sysfs_dirent *sysfs_get(struct sysfs_dirent *sd); void sysfs_put(struct sysfs_dirent *sd); void sysfs_printk_last_file(void); +/* Called to clear a ns tag when it is no longer valid */ void sysfs_exit_ns(enum kobj_ns_type type, const void *tag); int __must_check sysfs_init(void); |