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

/linux-master/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);
41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
43 #define to_foo_attr(x) container_of(x, struct foo_attribute, attr)
56 struct foo_attribute *attribute;
76 struct foo_attribute *attribute;
112 static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr,
118 static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr,
131 static struct foo_attribute foo_attribute variable in typeref:struct:foo_attribute
[all...]
H A Dkobject-example.c47 static struct kobj_attribute foo_attribute = variable in typeref:struct:kobj_attribute
93 &foo_attribute.attr,

Completed in 179 milliseconds