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
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);
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_obj, struct foo_attribute *attr, in foo_show() argument
115 return sysfs_emit(buf, "%d\n", foo_obj->foo); in foo_show()
118 static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_store() argument
[all …]