Home
last modified time | relevance | path

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

/linux/samples/kobject/
H A Dkset-example.c38 struct foo_attribute { struct
40 ssize_t (*show)(struct foo_obj *foo, const struct foo_attribute *attr, char *buf); argument
41 ssize_t (*store)(struct foo_obj *foo, const struct foo_attribute *attr, argument
44 #define to_foo_attr(x) container_of_const(x, struct foo_attribute, attr)
57 const struct foo_attribute *attribute; in foo_attr_show()
77 const struct foo_attribute *attribute; in foo_attr_store()
113 static ssize_t foo_show(struct foo_obj *foo_obj, const struct foo_attribute *attr, in foo_show()
119 static ssize_t foo_store(struct foo_obj *foo_obj, const struct foo_attribute *attr, in foo_store()
132 static const struct foo_attribute foo_attribute = variable
139 static ssize_t b_show(struct foo_obj *foo_obj, const struct foo_attribute *attr, in b_show()
[all …]
H A Dkobject-example.c47 static struct kobj_attribute foo_attribute = variable
93 &foo_attribute.attr,