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()
59 const struct kobj_type *ktype = get_ktype(kobj); in create_dir() local
67 if (ktype) { in create_dir()
68 error = sysfs_create_groups(kobj, ktype->default_groups); in create_dir()
317 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype) in kobject_init() argument
325 if (!ktype) { in kobject_init()
337 kobj->ktype = ktype; in kobject_init()
432 int kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, in kobject_init_and_add() argument
438 kobject_init(kobj, ktype); in kobject_init_and_add()
573 const struct kobj_type *ktype; in __kobject_del() local
576 ktype = get_ktype(kobj); in __kobject_del()
578 if (ktype) in __kobject_del()
579 sysfs_remove_groups(kobj, ktype->default_groups); in __kobject_del()
953 kset->kobj.ktype = &kset_ktype; in kset_create()
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()