Lines Matching refs:ktype
35 return kobj->ktype->namespace(kobj); in kobject_namespace()
53 if (kobj->ktype->get_ownership) in kobject_get_ownership()
54 kobj->ktype->get_ownership(kobj, uid, gid); in kobject_get_ownership()
85 const struct kobj_type *ktype = get_ktype(kobj); in create_dir() local
99 if (ktype) { in create_dir()
100 error = sysfs_create_groups(kobj, ktype->default_groups); in create_dir()
349 void kobject_init(struct kobject *kobj, struct kobj_type *ktype) in kobject_init() argument
357 if (!ktype) { in kobject_init()
369 kobj->ktype = ktype; in kobject_init()
464 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, in kobject_init_and_add() argument
470 kobject_init(kobj, ktype); in kobject_init_and_add()
605 const struct kobj_type *ktype; in __kobject_del() local
608 ktype = get_ktype(kobj); in __kobject_del()
610 if (ktype) in __kobject_del()
611 sysfs_remove_groups(kobj, ktype->default_groups); in __kobject_del()
985 kset->kobj.ktype = &kset_ktype; in kset_create()
1071 if (parent && parent->ktype && parent->ktype->child_ns_type) in kobj_child_ns_ops()
1072 ops = parent->ktype->child_ns_type(parent); in kobj_child_ns_ops()