Lines Matching refs:kobject
2 * Sample kobject implementation
10 #include <linux/kobject.h>
18 * /sys/kernel/kobject-example In that directory, 3 files are created:
30 static ssize_t foo_show(struct kobject *kobj, struct kobj_attribute *attr,
36 static ssize_t foo_store(struct kobject *kobj, struct kobj_attribute *attr,
50 static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr,
62 static ssize_t b_store(struct kobject *kobj, struct kobj_attribute *attr,
94 * the kobject directory. If we specify a name, a subdirectory will be
102 static struct kobject *example_kobj;
109 * Create a simple kobject with the name of "kobject_example",
121 /* Create the files associated with this kobject */