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
49 if (kobj->parent) in sysfs_create_dir_ns()
50 parent = kobj->parent->sd; in sysfs_create_dir_ns()
52 parent = sysfs_root_kn; in sysfs_create_dir_ns()
54 if (!parent) in sysfs_create_dir_ns()
59 kn = kernfs_create_dir_ns(parent, kobject_name(kobj), 0755, uid, gid, 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()