Home
last modified time | relevance | path

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

/linux-4.4.14/samples/kobject/
Dkset-example.c31 struct foo_obj { struct
37 #define to_foo_obj(x) container_of(x, struct foo_obj, kobj) argument
42 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf);
43 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
59 struct foo_obj *foo; in foo_attr_show()
79 struct foo_obj *foo; in foo_attr_store()
105 struct foo_obj *foo; in foo_release()
114 static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_show() argument
117 return sprintf(buf, "%d\n", foo_obj->foo); in foo_show()
120 static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_store() argument
[all …]