Lines Matching refs:kobj
32 struct kobject kobj; member
37 #define to_foo_obj(x) container_of(x, struct foo_obj, kobj)
54 static ssize_t foo_attr_show(struct kobject *kobj, in foo_attr_show() argument
62 foo = to_foo_obj(kobj); in foo_attr_show()
74 static ssize_t foo_attr_store(struct kobject *kobj, in foo_attr_store() argument
82 foo = to_foo_obj(kobj); in foo_attr_store()
103 static void foo_release(struct kobject *kobj) in foo_release() argument
107 foo = to_foo_obj(kobj); in foo_release()
214 foo->kobj.kset = example_kset; in create_foo_obj()
222 retval = kobject_init_and_add(&foo->kobj, &foo_ktype, NULL, "%s", name); in create_foo_obj()
224 kobject_put(&foo->kobj); in create_foo_obj()
232 kobject_uevent(&foo->kobj, KOBJ_ADD); in create_foo_obj()
239 kobject_put(&foo->kobj); in destroy_foo_obj()