foo_obj 36 samples/kobject/kset-example.c #define to_foo_obj(x) container_of(x, struct foo_obj, kobj) foo_obj 41 samples/kobject/kset-example.c ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf); foo_obj 42 samples/kobject/kset-example.c ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count); foo_obj 58 samples/kobject/kset-example.c struct foo_obj *foo; foo_obj 78 samples/kobject/kset-example.c struct foo_obj *foo; foo_obj 104 samples/kobject/kset-example.c struct foo_obj *foo; foo_obj 116 samples/kobject/kset-example.c return sprintf(buf, "%d\n", foo_obj->foo); foo_obj 122 samples/kobject/kset-example.c sscanf(buf, "%du", &foo_obj->foo); foo_obj 139 samples/kobject/kset-example.c var = foo_obj->baz; foo_obj 141 samples/kobject/kset-example.c var = foo_obj->bar; foo_obj 152 samples/kobject/kset-example.c foo_obj->baz = var; foo_obj 154 samples/kobject/kset-example.c foo_obj->bar = var; foo_obj 186 samples/kobject/kset-example.c static struct foo_obj *foo_obj; foo_obj 187 samples/kobject/kset-example.c static struct foo_obj *bar_obj; foo_obj 188 samples/kobject/kset-example.c static struct foo_obj *baz_obj; foo_obj 190 samples/kobject/kset-example.c static struct foo_obj *create_foo_obj(const char *name) foo_obj 192 samples/kobject/kset-example.c struct foo_obj *foo; foo_obj 245 samples/kobject/kset-example.c foo_obj = create_foo_obj("foo"); foo_obj 246 samples/kobject/kset-example.c if (!foo_obj) foo_obj 262 samples/kobject/kset-example.c destroy_foo_obj(foo_obj); foo_obj 271 samples/kobject/kset-example.c destroy_foo_obj(foo_obj);