Lines Matching refs:attr
50 #define sysfs_attr_init(attr) \ argument
54 (attr)->key = &__key; \
57 #define sysfs_attr_init(attr) do {} while (0) argument
91 .attr = {.name = __stringify(_name), \
98 .attr = {.name = __stringify(_name), \
105 .attr = { .name = __stringify(_name), .mode = S_IRUGO }, \
110 .attr = { .name = __stringify(_name), .mode = S_IWUSR }, \
117 #define __ATTR_NULL { .attr = { .name = NULL } }
121 .attr = {.name = __stringify(_name), .mode = _mode, \
146 struct attribute attr; member
153 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
167 #define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&(bin_attr)->attr)
171 .attr = { .name = __stringify(_name), .mode = _mode }, \
178 .attr = { .name = __stringify(_name), .mode = S_IRUGO }, \
219 const struct attribute *attr,
222 const struct attribute **attr);
224 const struct attribute *attr, umode_t mode);
225 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
227 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
228 void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
231 const struct bin_attribute *attr);
233 const struct bin_attribute *attr);
260 const struct attribute *attr, const char *group);
262 const struct attribute *attr, const char *group);
272 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
317 const struct attribute *attr, in sysfs_create_file_ns() argument
324 const struct attribute **attr) in sysfs_create_files() argument
330 const struct attribute *attr, umode_t mode) in sysfs_chmod_file() argument
336 const struct attribute *attr, in sysfs_remove_file_ns() argument
342 const struct attribute *attr) in sysfs_remove_file_self() argument
348 const struct attribute **attr) in sysfs_remove_files() argument
353 const struct bin_attribute *attr) in sysfs_create_bin_file() argument
359 const struct bin_attribute *attr) in sysfs_remove_bin_file() argument
421 const struct attribute *attr, const char *group) in sysfs_add_file_to_group() argument
427 const struct attribute *attr, const char *group) in sysfs_remove_file_from_group() argument
455 const char *attr) in sysfs_notify() argument
471 const struct attribute *attr) in sysfs_create_file() argument
473 return sysfs_create_file_ns(kobj, attr, NULL); in sysfs_create_file()
477 const struct attribute *attr) in sysfs_remove_file() argument
479 sysfs_remove_file_ns(kobj, attr, NULL); in sysfs_remove_file()