Lines Matching defs:attribute
37 /* a custom attribute that works just for a struct foo_obj. */
39 struct attribute attr;
53 struct attribute *attr,
56 struct foo_attribute *attribute;
59 attribute = to_foo_attr(attr);
62 if (!attribute->show)
65 return attribute->show(foo, attribute, buf);
73 struct attribute *attr,
76 struct foo_attribute *attribute;
79 attribute = to_foo_attr(attr);
82 if (!attribute->store)
85 return attribute->store(foo, attribute, buf, len);
136 * looking at the attribute for the "baz" and "bar" files.
175 static struct attribute *foo_default_attrs[] = {