Home
last modified time | relevance | path

Searched refs:foo_obj (Results 1 – 1 of 1) sorted by relevance

/linux/samples/kobject/
H A Dkset-example.c29 struct foo_obj { struct
35 #define to_foo_obj(x) container_of(x, struct foo_obj, kobj) argument
37 /* a custom attribute that works just for a struct foo_obj. */
40 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf);
41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
49 * transpose back from a "default" kobject to our custom struct foo_obj and
57 struct foo_obj *foo; in foo_attr_show()
77 struct foo_obj *foo; in foo_attr_store()
103 struct foo_obj *foo; in foo_release()
112 static ssize_t foo_show(struct foo_obj *foo_ob argument
118 foo_store(struct foo_obj * foo_obj,struct foo_attribute * attr,const char * buf,size_t count) foo_store() argument
138 b_show(struct foo_obj * foo_obj,struct foo_attribute * attr,char * buf) b_show() argument
150 b_store(struct foo_obj * foo_obj,struct foo_attribute * attr,const char * buf,size_t count) b_store() argument
195 static struct foo_obj *foo_obj; global() variable
[all...]