Lines Matching refs:parent

100 	struct kobject *parent = kobj;  in get_kobj_path_length()  local
107 if (kobject_name(parent) == NULL) in get_kobj_path_length()
109 length += strlen(kobject_name(parent)) + 1; in get_kobj_path_length()
110 parent = parent->parent; in get_kobj_path_length()
111 } while (parent); in get_kobj_path_length()
117 struct kobject *parent; in fill_kobj_path() local
120 for (parent = kobj; parent; parent = parent->parent) { in fill_kobj_path()
121 int cur = strlen(kobject_name(parent)); in fill_kobj_path()
124 memcpy(path + length, kobject_name(parent), cur); in fill_kobj_path()
196 struct kobject *parent; in kobject_add_internal() local
208 parent = kobject_get(kobj->parent); in kobject_add_internal()
212 if (!parent) in kobject_add_internal()
213 parent = kobject_get(&kobj->kset->kobj); in kobject_add_internal()
215 kobj->parent = parent; in kobject_add_internal()
220 parent ? kobject_name(parent) : "<NULL>", in kobject_add_internal()
226 kobject_put(parent); in kobject_add_internal()
227 kobj->parent = NULL; in kobject_add_internal()
236 parent ? kobject_name(parent) : "'none'"); in kobject_add_internal()
347 struct kobject *parent, in kobject_add_varg() argument
357 kobj->parent = parent; in kobject_add_varg()
394 int kobject_add(struct kobject *kobj, struct kobject *parent, in kobject_add() argument
410 retval = kobject_add_varg(kobj, parent, fmt, args); in kobject_add()
433 struct kobject *parent, const char *fmt, ...) in kobject_init_and_add() argument
441 retval = kobject_add_varg(kobj, parent, fmt, args); in kobject_init_and_add()
469 if (!kobj->parent) { in kobject_rename()
556 old_parent = kobj->parent; in kobject_move()
557 kobj->parent = new_parent; in kobject_move()
593 kobj->parent = NULL; in __kobject_del()
605 struct kobject *parent; in kobject_del() local
610 parent = kobj->parent; in kobject_del()
612 kobject_put(parent); in kobject_del()
649 struct kobject *parent = kobj->parent; in kobject_cleanup() local
654 kobject_name(kobj), kobj, __func__, kobj->parent); in kobject_cleanup()
667 parent = NULL; in kobject_cleanup()
682 kobject_put(parent); in kobject_cleanup()
699 kobject_name(kobj), kobj, __func__, kobj->parent, delay); in kobject_release()
773 struct kobject *kobject_create_and_add(const char *name, struct kobject *parent) in kobject_create_and_add() argument
782 retval = kobject_add(kobj, parent, "%s", name); in kobject_create_and_add()
905 if (kobj->parent) in kset_get_ownership()
906 kobject_get_ownership(kobj->parent, uid, gid); in kset_get_ownership()
946 kset->kobj.parent = parent_kobj; in kset_create()
1035 const struct kobj_ns_type_operations *kobj_child_ns_ops(struct kobject *parent) in kobj_child_ns_ops() argument
1039 if (parent && parent->ktype && parent->ktype->child_ns_type) in kobj_child_ns_ops()
1040 ops = parent->ktype->child_ns_type(parent); in kobj_child_ns_ops()
1047 return kobj_child_ns_ops(kobj->parent); in kobj_ns_ops()