Home
last modified time | relevance | path

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

/openbmc/linux/samples/kobject/
H A Dkset-example.c38 struct foo_attribute { struct
40 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf); argument
43 #define to_foo_attr(x) container_of(x, struct foo_attribute, attr)
56 struct foo_attribute *attribute; in foo_attr_show()
76 struct foo_attribute *attribute; in foo_attr_store()
131 static struct foo_attribute foo_attribute = variable
138 static ssize_t b_show(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_show()
150 static ssize_t b_store(struct foo_obj *foo_obj, struct foo_attribute *attr, in b_store()
166 static struct foo_attribute baz_attribute =
168 static struct foo_attribute bar_attribute =
[all …]
H A Dkobject-example.c47 static struct kobj_attribute foo_attribute = variable
93 &foo_attribute.attr,