Lines Matching refs:parent
25 struct kernfs_node *kernfs_create_link(struct kernfs_node *parent, in kernfs_create_link() argument
39 kn = kernfs_new_node(parent, name, S_IFLNK|0777, uid, gid, KERNFS_LINK); in kernfs_create_link()
43 if (kernfs_ns_enabled(parent)) in kernfs_create_link()
56 static int kernfs_get_target_path(struct kernfs_node *parent, in kernfs_get_target_path() argument
64 base = parent; in kernfs_get_target_path()
65 while (base->parent) { in kernfs_get_target_path()
66 kn = target->parent; in kernfs_get_target_path()
67 while (kn->parent && base != kn) in kernfs_get_target_path()
68 kn = kn->parent; in kernfs_get_target_path()
78 base = base->parent; in kernfs_get_target_path()
83 while (kn->parent && kn != base) { in kernfs_get_target_path()
85 kn = kn->parent; in kernfs_get_target_path()
97 while (kn->parent && kn != base) { in kernfs_get_target_path()
105 kn = kn->parent; in kernfs_get_target_path()
114 struct kernfs_node *parent = kn->parent; in kernfs_getlink() local
116 struct kernfs_root *root = kernfs_root(parent); in kernfs_getlink()
120 error = kernfs_get_target_path(parent, target, path); in kernfs_getlink()