Lines Matching defs:kernfs_root
41 lockdep_assert_held(&kernfs_root(kn)->kernfs_rwsem);
78 struct kernfs_root *ra = kernfs_root(a), *rb = kernfs_root(b);
147 kn_from = kernfs_root(kn_to)->kn;
386 down_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
390 up_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
413 down_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
417 up_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
467 wake_up_all(&kernfs_root(kn)->deactivate_waitq);
479 __releases(&kernfs_root(kn)->kernfs_rwsem)
480 __acquires(&kernfs_root(kn)->kernfs_rwsem)
482 struct kernfs_root *root = kernfs_root(kn);
541 struct kernfs_root *root;
545 root = kernfs_root(kn);
601 static struct kernfs_node *__kernfs_new_node(struct kernfs_root *root,
691 kn = __kernfs_new_node(kernfs_root(parent), parent,
711 struct kernfs_node *kernfs_find_and_get_node_by_id(struct kernfs_root *root,
764 struct kernfs_root *root = kernfs_root(parent);
809 if (!(kernfs_root(kn)->flags & KERNFS_ROOT_CREATE_DEACTIVATED))
836 lockdep_assert_held(&kernfs_root(parent)->kernfs_rwsem);
868 lockdep_assert_held_read(&kernfs_root(parent)->kernfs_rwsem);
907 struct kernfs_root *root = kernfs_root(parent);
933 struct kernfs_root *root = kernfs_root(parent);
952 struct kernfs_root *kernfs_create_root(struct kernfs_syscall_ops *scops,
955 struct kernfs_root *root;
1009 void kernfs_destroy_root(struct kernfs_root *root)
1021 * kernfs_root_to_node - return the kernfs_node associated with a kernfs_root
1026 struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root)
1106 struct kernfs_root *root;
1149 root = kernfs_root(kn);
1186 struct kernfs_root *root;
1190 root = kernfs_root(parent);
1228 struct kernfs_syscall_ops *scops = kernfs_root(parent)->syscall_ops;
1246 struct kernfs_syscall_ops *scops = kernfs_root(kn)->syscall_ops;
1268 struct kernfs_syscall_ops *scops = kernfs_root(kn)->syscall_ops;
1342 lockdep_assert_held_write(&kernfs_root(root)->kernfs_rwsem);
1363 lockdep_assert_held_write(&kernfs_root(kn)->kernfs_rwsem);
1392 struct kernfs_root *root = kernfs_root(kn);
1417 struct kernfs_root *root = kernfs_root(kn);
1446 lockdep_assert_held_write(&kernfs_root(kn)->kernfs_rwsem);
1488 down_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
1495 up_write(&kernfs_root(kn)->kernfs_iattr_rwsem);
1511 struct kernfs_root *root;
1516 root = kernfs_root(kn);
1608 struct kernfs_root *root = kernfs_root(kn);
1628 wait_queue_head_t *waitq = &kernfs_root(kn)->deactivate_waitq;
1671 struct kernfs_root *root;
1679 root = kernfs_root(parent);
1710 struct kernfs_root *root;
1718 root = kernfs_root(kn);
1838 struct kernfs_root *root;
1844 root = kernfs_root(parent);