Lines Matching defs:attr

41  *	@attr: struct attribute to initialize
50 #define sysfs_attr_init(attr) \
54 (attr)->key = &__key; \
57 #define sysfs_attr_init(attr) do {} while (0)
74 .attr = {.name = __stringify(_name), \
81 .attr = { .name = __stringify(_name), .mode = S_IRUGO }, \
86 .attr = { .name = __stringify(_name), .mode = S_IWUSR }, \
93 #define __ATTR_NULL { .attr = { .name = NULL } }
97 .attr = {.name = __stringify(_name), .mode = _mode, \
122 struct attribute attr;
129 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
135 * @attr: struct bin_attribute to initialize
143 #define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&(bin_attr)->attr)
147 .attr = { .name = __stringify(_name), .mode = _mode }, \
154 .attr = { .name = __stringify(_name), .mode = S_IRUGO }, \
191 const struct attribute *attr,
194 const struct attribute **attr);
196 const struct attribute *attr, umode_t mode);
197 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
199 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
200 void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
203 const struct bin_attribute *attr);
205 const struct bin_attribute *attr);
232 const struct attribute *attr, const char *group);
234 const struct attribute *attr, const char *group);
244 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
278 const struct attribute *attr,
285 const struct attribute **attr)
291 const struct attribute *attr, umode_t mode)
297 const struct attribute *attr,
303 const struct attribute *attr)
309 const struct attribute **attr)
314 const struct bin_attribute *attr)
320 const struct bin_attribute *attr)
382 const struct attribute *attr, const char *group)
388 const struct attribute *attr, const char *group)
416 const char *attr)
432 const struct attribute *attr)
434 return sysfs_create_file_ns(kobj, attr, NULL);
438 const struct attribute *attr)
440 sysfs_remove_file_ns(kobj, attr, NULL);