mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: Tejun Heo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
f349cf3473
commit
be867b194a
5 changed files with 43 additions and 1 deletions
|
|
@ -948,6 +948,17 @@ const void *kobj_ns_initial(enum kobj_ns_type type)
|
|||
return ns;
|
||||
}
|
||||
|
||||
/*
|
||||
* kobj_ns_exit - invalidate a namespace tag
|
||||
*
|
||||
* @type: the namespace type (i.e. KOBJ_NS_TYPE_NET)
|
||||
* @ns: the actual namespace being invalidated
|
||||
*
|
||||
* This is called when a tag is no longer valid. For instance,
|
||||
* when a network namespace exits, it uses this helper to
|
||||
* make sure no sb's sysfs_info points to the now-invalidated
|
||||
* netns.
|
||||
*/
|
||||
void kobj_ns_exit(enum kobj_ns_type type, const void *ns)
|
||||
{
|
||||
sysfs_exit_ns(type, ns);
|
||||
|
|
|
|||
Loading…
Reference in a new issue