Lines Matching refs:ktype
37 return kobj->ktype->namespace(kobj); in kobject_namespace()
55 if (kobj->ktype->get_ownership) in kobject_get_ownership()
56 kobj->ktype->get_ownership(kobj, uid, gid); in kobject_get_ownership()
69 const struct kobj_type *ktype = get_ktype(kobj); in create_dir() local
77 if (ktype) { in create_dir()
78 error = sysfs_create_groups(kobj, ktype->default_groups); in create_dir()
333 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype) in kobject_init() argument
341 if (!ktype) { in kobject_init()
353 kobj->ktype = ktype; in kobject_init()
448 int kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, in kobject_init_and_add() argument
454 kobject_init(kobj, ktype); in kobject_init_and_add()
589 const struct kobj_type *ktype; in __kobject_del() local
592 ktype = get_ktype(kobj); in __kobject_del()
594 if (ktype) in __kobject_del()
595 sysfs_remove_groups(kobj, ktype->default_groups); in __kobject_del()
864 if (!k->kobj.ktype) { in kset_register()
981 kset->kobj.ktype = &kset_ktype; in kset_create()
1063 if (parent && parent->ktype && parent->ktype->child_ns_type) in kobj_child_ns_ops()
1064 ops = parent->ktype->child_ns_type(parent); in kobj_child_ns_ops()