Lines Matching refs:attribute
68 An attribute definition is simply:
70 struct attribute {
77 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr);
78 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr);
81 A bare attribute contains no means to read or write the value of the
82 attribute. Subsystems are encouraged to define their own attribute
89 struct attribute attr;
123 When a subsystem defines a new attribute type, it must implement a
125 show and store methods of the attribute owners.
128 ssize_t (*show)(struct kobject *, struct attribute *, char *);
129 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
138 and struct attribute pointers to the appropriate pointer types, and
147 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
169 specified when declaring the attribute. The method types should be as
176 IOW, they should take only an object, an attribute, and a buffer as parameters.
185 Recall that an attribute should only be exporting one value, or an
229 A very simple (and naive) implementation of a device attribute is:
314 struct attribute attr;
336 struct attribute attr;
357 struct attribute attr;