Lines Matching refs:parent
21 void sysfs_warn_dup(struct kernfs_node *parent, const char *name) in sysfs_warn_dup() argument
27 kernfs_path(parent, buf, PATH_MAX); in sysfs_warn_dup()
42 struct kernfs_node *parent, *kn; in sysfs_create_dir_ns() local
48 if (kobj->parent) in sysfs_create_dir_ns()
49 parent = kobj->parent->sd; in sysfs_create_dir_ns()
51 parent = sysfs_root_kn; in sysfs_create_dir_ns()
53 if (!parent) in sysfs_create_dir_ns()
58 kn = kernfs_create_dir_ns(parent, kobject_name(kobj), in sysfs_create_dir_ns()
63 sysfs_warn_dup(parent, kobject_name(kobj)); in sysfs_create_dir_ns()
108 struct kernfs_node *parent; in sysfs_rename_dir_ns() local
111 parent = kernfs_get_parent(kobj->sd); in sysfs_rename_dir_ns()
112 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); in sysfs_rename_dir_ns()
113 kernfs_put(parent); in sysfs_rename_dir_ns()
136 struct kernfs_node *kn, *parent = parent_kobj->sd; in sysfs_create_mount_point() local
138 kn = kernfs_create_empty_dir(parent, name); in sysfs_create_mount_point()
141 sysfs_warn_dup(parent, name); in sysfs_create_mount_point()
157 struct kernfs_node *parent = parent_kobj->sd; in sysfs_remove_mount_point() local
159 kernfs_remove_by_name_ns(parent, name, NULL); in sysfs_remove_mount_point()