Lines Matching refs:kernfs_node
25 #define rb_to_kn(X) rb_entry((X), struct kernfs_node, rb)
27 static bool kernfs_active(struct kernfs_node *kn) in kernfs_active()
33 static bool kernfs_lockdep(struct kernfs_node *kn) in kernfs_lockdep()
42 static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name_locked()
51 static size_t kernfs_depth(struct kernfs_node *from, struct kernfs_node *to) in kernfs_depth()
62 static struct kernfs_node *kernfs_common_ancestor(struct kernfs_node *a, in kernfs_common_ancestor()
63 struct kernfs_node *b) in kernfs_common_ancestor()
122 static int kernfs_path_from_node_locked(struct kernfs_node *kn_to, in kernfs_path_from_node_locked()
123 struct kernfs_node *kn_from, in kernfs_path_from_node_locked()
126 struct kernfs_node *kn, *common; in kernfs_path_from_node_locked()
183 int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) in kernfs_name()
210 int kernfs_path_from_node(struct kernfs_node *to, struct kernfs_node *from, in kernfs_path_from_node()
229 void pr_cont_kernfs_name(struct kernfs_node *kn) in pr_cont_kernfs_name()
247 void pr_cont_kernfs_path(struct kernfs_node *kn) in pr_cont_kernfs_path()
279 struct kernfs_node *kernfs_get_parent(struct kernfs_node *kn) in kernfs_get_parent()
281 struct kernfs_node *parent; in kernfs_get_parent()
316 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare()
329 static int kernfs_sd_compare(const struct kernfs_node *left, in kernfs_sd_compare()
330 const struct kernfs_node *right) in kernfs_sd_compare()
348 static int kernfs_link_sibling(struct kernfs_node *kn) in kernfs_link_sibling()
354 struct kernfs_node *pos; in kernfs_link_sibling()
390 static bool kernfs_unlink_sibling(struct kernfs_node *kn) in kernfs_unlink_sibling()
413 struct kernfs_node *kernfs_get_active(struct kernfs_node *kn) in kernfs_get_active()
433 void kernfs_put_active(struct kernfs_node *kn) in kernfs_put_active()
457 static void kernfs_drain(struct kernfs_node *kn) in kernfs_drain()
491 void kernfs_get(struct kernfs_node *kn) in kernfs_get()
506 void kernfs_put(struct kernfs_node *kn) in kernfs_put()
508 struct kernfs_node *parent; in kernfs_put()
553 struct kernfs_node *kn; in kernfs_dop_revalidate()
605 struct kernfs_node *kernfs_node_from_dentry(struct dentry *dentry) in kernfs_node_from_dentry()
613 static struct kernfs_node *__kernfs_new_node(struct kernfs_root *root, in __kernfs_new_node()
614 struct kernfs_node *parent, in __kernfs_new_node()
619 struct kernfs_node *kn; in __kernfs_new_node()
682 struct kernfs_node *kernfs_new_node(struct kernfs_node *parent, in kernfs_new_node()
687 struct kernfs_node *kn; in kernfs_new_node()
709 struct kernfs_node *kernfs_find_and_get_node_by_id(struct kernfs_root *root, in kernfs_find_and_get_node_by_id()
712 struct kernfs_node *kn; in kernfs_find_and_get_node_by_id()
760 int kernfs_add_one(struct kernfs_node *kn) in kernfs_add_one()
762 struct kernfs_node *parent = kn->parent; in kernfs_add_one()
825 static struct kernfs_node *kernfs_find_ns(struct kernfs_node *parent, in kernfs_find_ns()
843 struct kernfs_node *kn; in kernfs_find_ns()
858 static struct kernfs_node *kernfs_walk_ns(struct kernfs_node *parent, in kernfs_walk_ns()
900 struct kernfs_node *kernfs_find_and_get_ns(struct kernfs_node *parent, in kernfs_find_and_get_ns()
903 struct kernfs_node *kn; in kernfs_find_and_get_ns()
924 struct kernfs_node *kernfs_walk_and_get_ns(struct kernfs_node *parent, in kernfs_walk_and_get_ns()
927 struct kernfs_node *kn; in kernfs_walk_and_get_ns()
950 struct kernfs_node *kn; in kernfs_create_root()
1017 struct kernfs_node *kernfs_create_dir_ns(struct kernfs_node *parent, in kernfs_create_dir_ns()
1022 struct kernfs_node *kn; in kernfs_create_dir_ns()
1051 struct kernfs_node *kernfs_create_empty_dir(struct kernfs_node *parent, in kernfs_create_empty_dir()
1054 struct kernfs_node *kn; in kernfs_create_empty_dir()
1082 struct kernfs_node *parent = dir->i_private; in kernfs_iop_lookup()
1083 struct kernfs_node *kn; in kernfs_iop_lookup()
1117 struct kernfs_node *parent = dir->i_private; in kernfs_iop_mkdir()
1135 struct kernfs_node *kn = kernfs_dentry_node(dentry); in kernfs_iop_rmdir()
1155 struct kernfs_node *kn = kernfs_dentry_node(old_dentry); in kernfs_iop_rename()
1156 struct kernfs_node *new_parent = new_dir->i_private; in kernfs_iop_rename()
1193 static struct kernfs_node *kernfs_leftmost_descendant(struct kernfs_node *pos) in kernfs_leftmost_descendant()
1195 struct kernfs_node *last; in kernfs_leftmost_descendant()
1224 static struct kernfs_node *kernfs_next_descendant_post(struct kernfs_node *pos, in kernfs_next_descendant_post()
1225 struct kernfs_node *root) in kernfs_next_descendant_post()
1261 void kernfs_activate(struct kernfs_node *kn) in kernfs_activate()
1263 struct kernfs_node *pos; in kernfs_activate()
1282 static void __kernfs_remove(struct kernfs_node *kn) in __kernfs_remove()
1284 struct kernfs_node *pos; in __kernfs_remove()
1354 void kernfs_remove(struct kernfs_node *kn) in kernfs_remove()
1375 void kernfs_break_active_protection(struct kernfs_node *kn) in kernfs_break_active_protection()
1399 void kernfs_unbreak_active_protection(struct kernfs_node *kn) in kernfs_unbreak_active_protection()
1441 bool kernfs_remove_self(struct kernfs_node *kn) in kernfs_remove_self()
1501 int kernfs_remove_by_name_ns(struct kernfs_node *parent, const char *name, in kernfs_remove_by_name_ns()
1504 struct kernfs_node *kn; in kernfs_remove_by_name_ns()
1533 int kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent, in kernfs_rename_ns()
1536 struct kernfs_node *old_parent; in kernfs_rename_ns()
1603 static inline unsigned char dt_type(struct kernfs_node *kn) in dt_type()
1614 static struct kernfs_node *kernfs_dir_pos(const void *ns, in kernfs_dir_pos()
1615 struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) in kernfs_dir_pos()
1648 static struct kernfs_node *kernfs_dir_next_pos(const void *ns, in kernfs_dir_next_pos()
1649 struct kernfs_node *parent, ino_t ino, struct kernfs_node *pos) in kernfs_dir_next_pos()
1667 struct kernfs_node *parent = kernfs_dentry_node(dentry); in kernfs_fop_readdir()
1668 struct kernfs_node *pos = file->private_data; in kernfs_fop_readdir()