foo_obj            35 samples/kobject/kset-example.c #define to_foo_obj(x) container_of(x, struct foo_obj, kobj)
foo_obj            40 samples/kobject/kset-example.c 	ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf);
foo_obj            41 samples/kobject/kset-example.c 	ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
foo_obj            57 samples/kobject/kset-example.c 	struct foo_obj *foo;
foo_obj            77 samples/kobject/kset-example.c 	struct foo_obj *foo;
foo_obj           103 samples/kobject/kset-example.c 	struct foo_obj *foo;
foo_obj           112 samples/kobject/kset-example.c static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr,
foo_obj           115 samples/kobject/kset-example.c 	return sprintf(buf, "%d\n", foo_obj->foo);
foo_obj           118 samples/kobject/kset-example.c static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr,
foo_obj           123 samples/kobject/kset-example.c 	ret = kstrtoint(buf, 10, &foo_obj->foo);
foo_obj           138 samples/kobject/kset-example.c static ssize_t b_show(struct foo_obj *foo_obj, struct foo_attribute *attr,
foo_obj           144 samples/kobject/kset-example.c 		var = foo_obj->baz;
foo_obj           146 samples/kobject/kset-example.c 		var = foo_obj->bar;
foo_obj           150 samples/kobject/kset-example.c static ssize_t b_store(struct foo_obj *foo_obj, struct foo_attribute *attr,
foo_obj           160 samples/kobject/kset-example.c 		foo_obj->baz = var;
foo_obj           162 samples/kobject/kset-example.c 		foo_obj->bar = var;
foo_obj           195 samples/kobject/kset-example.c static struct foo_obj *foo_obj;
foo_obj           196 samples/kobject/kset-example.c static struct foo_obj *bar_obj;
foo_obj           197 samples/kobject/kset-example.c static struct foo_obj *baz_obj;
foo_obj           199 samples/kobject/kset-example.c static struct foo_obj *create_foo_obj(const char *name)
foo_obj           201 samples/kobject/kset-example.c 	struct foo_obj *foo;
foo_obj           236 samples/kobject/kset-example.c static void destroy_foo_obj(struct foo_obj *foo)
foo_obj           254 samples/kobject/kset-example.c 	foo_obj = create_foo_obj("foo");
foo_obj           255 samples/kobject/kset-example.c 	if (!foo_obj)
foo_obj           271 samples/kobject/kset-example.c 	destroy_foo_obj(foo_obj);
foo_obj           281 samples/kobject/kset-example.c 	destroy_foo_obj(foo_obj);