Home
last modified time | relevance | path

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

/linux-4.1.27/samples/kobject/
Dkset-example.c40 struct foo_attribute { struct
42 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf); argument
43 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count); argument
45 #define to_foo_attr(x) container_of(x, struct foo_attribute, attr)
58 struct foo_attribute *attribute; in foo_attr_show()
78 struct foo_attribute *attribute; in foo_attr_store()
114 static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_show()
120 static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in foo_store()
133 static struct foo_attribute foo_attribute = variable
140 static ssize_t b_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_show()
[all …]
Dkobject-example.c49 static struct kobj_attribute foo_attribute = variable
95 &foo_attribute.attr,