Lines Matching refs:kernfs_node
32 #define rb_to_kn(X) rb_entry((X), struct kernfs_node, rb)
34 static bool __kernfs_active(struct kernfs_node *kn) in __kernfs_active()
39 static bool kernfs_active(struct kernfs_node *kn) in kernfs_active()
45 static bool kernfs_lockdep(struct kernfs_node *kn) in kernfs_lockdep()
54 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked()
63 static size_t kernfs_depth(struct kernfs_node *from, struct kernfs_node *to) in kernfs_depth()
74 static struct kernfs_node *kernfs_common_ancestor(struct kernfs_node *a, in kernfs_common_ancestor()
75 struct kernfs_node *b) in kernfs_common_ancestor()
134 static int kernfs_path_from_node_locked(struct kernfs_node *kn_to, in kernfs_path_from_node_locked()
135 struct kernfs_node *kn_from, in kernfs_path_from_node_locked()
138 struct kernfs_node *kn, *common; in kernfs_path_from_node_locked()
196 int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name()
223 int kernfs_path_from_node(struct kernfs_node *to, struct kernfs_node *from, in kernfs_path_from_node()
242 void pr_cont_kernfs_name(struct kernfs_node *kn) in pr_cont_kernfs_name()
260 void pr_cont_kernfs_path(struct kernfs_node *kn) in pr_cont_kernfs_path()
292 struct kernfs_node *kernfs_get_parent(struct kernfs_node *kn) in kernfs_get_parent()
294 struct kernfs_node *parent; in kernfs_get_parent()
329 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare()
342 static int kernfs_sd_compare(const struct kernfs_node *left, in kernfs_sd_compare()
343 const struct kernfs_node *right) in kernfs_sd_compare()
361 static int kernfs_link_sibling(struct kernfs_node *kn) in kernfs_link_sibling()
367 struct kernfs_node *pos; in kernfs_link_sibling()
408 static bool kernfs_unlink_sibling(struct kernfs_node *kn) in kernfs_unlink_sibling()
434 struct kernfs_node *kernfs_get_active(struct kernfs_node *kn) in kernfs_get_active()
454 void kernfs_put_active(struct kernfs_node *kn) in kernfs_put_active()
478 static void kernfs_drain(struct kernfs_node *kn) in kernfs_drain()
523 void kernfs_get(struct kernfs_node *kn) in kernfs_get()
534 struct kernfs_node *kn = container_of(rcu, struct kernfs_node, rcu); in kernfs_free_rcu()
552 void kernfs_put(struct kernfs_node *kn) in kernfs_put()
554 struct kernfs_node *parent; in kernfs_put()
603 struct kernfs_node *kernfs_node_from_dentry(struct dentry *dentry) in kernfs_node_from_dentry()
610 static struct kernfs_node *__kernfs_new_node(struct kernfs_root *root, in __kernfs_new_node()
611 struct kernfs_node *parent, in __kernfs_new_node()
616 struct kernfs_node *kn; in __kernfs_new_node()
681 struct kernfs_node *kernfs_new_node(struct kernfs_node *parent, in kernfs_new_node()
686 struct kernfs_node *kn; in kernfs_new_node()
720 struct kernfs_node *kernfs_find_and_get_node_by_id(struct kernfs_root *root, in kernfs_find_and_get_node_by_id()
723 struct kernfs_node *kn; in kernfs_find_and_get_node_by_id()
770 int kernfs_add_one(struct kernfs_node *kn) in kernfs_add_one()
772 struct kernfs_node *parent = kn->parent; in kernfs_add_one()
837 static struct kernfs_node *kernfs_find_ns(struct kernfs_node *parent, in kernfs_find_ns()
855 struct kernfs_node *kn; in kernfs_find_ns()
870 static struct kernfs_node *kernfs_walk_ns(struct kernfs_node *parent, in kernfs_walk_ns()
912 struct kernfs_node *kernfs_find_and_get_ns(struct kernfs_node *parent, in kernfs_find_and_get_ns()
915 struct kernfs_node *kn; in kernfs_find_and_get_ns()
938 struct kernfs_node *kernfs_walk_and_get_ns(struct kernfs_node *parent, in kernfs_walk_and_get_ns()
941 struct kernfs_node *kn; in kernfs_walk_and_get_ns()
965 struct kernfs_node *kn; in kernfs_create_root()
1035 struct kernfs_node *kernfs_root_to_node(struct kernfs_root *root) in kernfs_root_to_node()
1052 struct kernfs_node *kernfs_create_dir_ns(struct kernfs_node *parent, in kernfs_create_dir_ns()
1057 struct kernfs_node *kn; in kernfs_create_dir_ns()
1086 struct kernfs_node *kernfs_create_empty_dir(struct kernfs_node *parent, in kernfs_create_empty_dir()
1089 struct kernfs_node *kn; in kernfs_create_empty_dir()
1114 struct kernfs_node *kn; in kernfs_dop_revalidate()
1122 struct kernfs_node *parent; in kernfs_dop_revalidate()
1193 struct kernfs_node *parent = dir->i_private; in kernfs_iop_lookup()
1194 struct kernfs_node *kn; in kernfs_iop_lookup()
1236 struct kernfs_node *parent = dir->i_private; in kernfs_iop_mkdir()
1254 struct kernfs_node *kn = kernfs_dentry_node(dentry); in kernfs_iop_rmdir()
1275 struct kernfs_node *kn = kernfs_dentry_node(old_dentry); in kernfs_iop_rename()
1276 struct kernfs_node *new_parent = new_dir->i_private; in kernfs_iop_rename()
1313 static struct kernfs_node *kernfs_leftmost_descendant(struct kernfs_node *pos) in kernfs_leftmost_descendant()
1315 struct kernfs_node *last; in kernfs_leftmost_descendant()
1346 static struct kernfs_node *kernfs_next_descendant_post(struct kernfs_node *pos, in kernfs_next_descendant_post()
1347 struct kernfs_node *root) in kernfs_next_descendant_post()
1370 static void kernfs_activate_one(struct kernfs_node *kn) in kernfs_activate_one()
1398 void kernfs_activate(struct kernfs_node *kn) in kernfs_activate()
1400 struct kernfs_node *pos; in kernfs_activate()
1424 void kernfs_show(struct kernfs_node *kn, bool show) in kernfs_show()
1447 static void __kernfs_remove(struct kernfs_node *kn) in __kernfs_remove()
1449 struct kernfs_node *pos; in __kernfs_remove()
1518 void kernfs_remove(struct kernfs_node *kn) in kernfs_remove()
1546 void kernfs_break_active_protection(struct kernfs_node *kn) in kernfs_break_active_protection()
1570 void kernfs_unbreak_active_protection(struct kernfs_node *kn) in kernfs_unbreak_active_protection()
1614 bool kernfs_remove_self(struct kernfs_node *kn) in kernfs_remove_self()
1676 int kernfs_remove_by_name_ns(struct kernfs_node *parent, const char *name, in kernfs_remove_by_name_ns()
1679 struct kernfs_node *kn; in kernfs_remove_by_name_ns()
1715 int kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent, in kernfs_rename_ns()
1718 struct kernfs_node *old_parent; in kernfs_rename_ns()
1792 static struct kernfs_node *kernfs_dir_pos(const void *ns, in kernfs_dir_pos()
1793 struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) in kernfs_dir_pos()
1826 static struct kernfs_node *kernfs_dir_next_pos(const void *ns, in kernfs_dir_next_pos()
1827 struct kernfs_node *parent, ino_t ino, struct kernfs_node *pos) in kernfs_dir_next_pos()
1845 struct kernfs_node *parent = kernfs_dentry_node(dentry); in kernfs_fop_readdir()
1846 struct kernfs_node *pos = file->private_data; in kernfs_fop_readdir()