···99#include <linux/rculist.h>1010#include <linux/cookie.h>11111212-/**1313- * struct ns_tree - Namespace tree1414- * @ns_tree: Rbtree of namespaces of a particular type1515- * @ns_list: Sequentially walkable list of all namespaces of this type1616- * @ns_tree_lock: Seqlock to protect the tree and list1717- */1818-struct ns_tree {1919- struct rb_root ns_tree;2020- struct list_head ns_list;2121- seqlock_t ns_tree_lock;2222- int type;2323-};2424-2512extern struct ns_tree cgroup_ns_tree;2613extern struct ns_tree ipc_ns_tree;2714extern struct ns_tree mnt_ns_tree;
+14
kernel/nstree.c
···44#include <linux/proc_ns.h>55#include <linux/vfsdebug.h>6677+/**88+ * struct ns_tree - Namespace tree99+ * @ns_tree: Rbtree of namespaces of a particular type1010+ * @ns_list: Sequentially walkable list of all namespaces of this type1111+ * @ns_tree_lock: Seqlock to protect the tree and list1212+ * @type: type of namespaces in this tree1313+ */1414+struct ns_tree {1515+ struct rb_root ns_tree;1616+ struct list_head ns_list;1717+ seqlock_t ns_tree_lock;1818+ int type;1919+};2020+721struct ns_tree mnt_ns_tree = {822 .ns_tree = RB_ROOT,923 .ns_list = LIST_HEAD_INIT(mnt_ns_tree.ns_list),