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), in sysfs_create_dir_ns()
64 sysfs_warn_dup(parent, kobject_name(kobj)); in sysfs_create_dir_ns()
109 struct kernfs_node *parent; in sysfs_rename_dir_ns() local
112 parent = kernfs_get_parent(kobj->sd); in sysfs_rename_dir_ns()
113 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); in sysfs_rename_dir_ns()
114 kernfs_put(parent); in sysfs_rename_dir_ns()
137 struct kernfs_node *kn, *parent = parent_kobj->sd; in sysfs_create_mount_point() local
139 kn = kernfs_create_empty_dir(parent, name); in sysfs_create_mount_point()
142 sysfs_warn_dup(parent, name); in sysfs_create_mount_point()
158 struct kernfs_node *parent = parent_kobj->sd; in sysfs_remove_mount_point() local
160 kernfs_remove_by_name_ns(parent, name, NULL); in sysfs_remove_mount_point()