Lines Matching refs:attribute
39 /* a custom attribute that works just for a struct foo_obj. */
41 struct attribute attr;
55 struct attribute *attr,
58 struct foo_attribute *attribute;
61 attribute = to_foo_attr(attr);
64 if (!attribute->show)
67 return attribute->show(foo, attribute, buf);
75 struct attribute *attr,
78 struct foo_attribute *attribute;
81 attribute = to_foo_attr(attr);
84 if (!attribute->store)
87 return attribute->store(foo, attribute, buf, len);
132 * looking at the attribute for the "baz" and "bar" files.
168 static struct attribute *foo_default_attrs[] = {