Lines Matching refs:parent
20 static int sysfs_do_create_link_sd(struct kernfs_node *parent, in sysfs_do_create_link_sd() argument
26 if (WARN_ON(!name || !parent)) in sysfs_do_create_link_sd()
44 kn = kernfs_create_link(parent, name, target); in sysfs_do_create_link_sd()
51 sysfs_warn_dup(parent, name); in sysfs_do_create_link_sd()
70 struct kernfs_node *parent = NULL; in sysfs_do_create_link() local
73 parent = sysfs_root_kn; in sysfs_do_create_link()
75 parent = kobj->sd; in sysfs_do_create_link()
77 if (!parent) in sysfs_do_create_link()
80 return sysfs_do_create_link_sd(parent, target, name, warn); in sysfs_do_create_link()
145 struct kernfs_node *parent = NULL; in sysfs_remove_link() local
148 parent = sysfs_root_kn; in sysfs_remove_link()
150 parent = kobj->sd; in sysfs_remove_link()
152 kernfs_remove_by_name(parent, name); in sysfs_remove_link()
169 struct kernfs_node *parent, *kn = NULL; in sysfs_rename_link_ns() local
174 parent = sysfs_root_kn; in sysfs_rename_link_ns()
176 parent = kobj->sd; in sysfs_rename_link_ns()
182 kn = kernfs_find_and_get_ns(parent, old, old_ns); in sysfs_rename_link_ns()
192 result = kernfs_rename_ns(kn, parent, new, new_ns); in sysfs_rename_link_ns()