Lines Matching refs:attr
51 #define sysfs_attr_init(attr) \ argument
55 (attr)->key = &__key; \
58 #define sysfs_attr_init(attr) do {} while (0) argument
149 struct kobject *kobj, struct attribute *attr, int n) \
153 return name##_attr_visible(kobj, attr, n); \
196 struct kobject *kobj, struct bin_attribute *attr, int n) \
200 return name##_attr_visible(kobj, attr, n); \
220 .attr = {.name = __stringify(_name), \
227 .attr = {.name = __stringify(_name), \
234 .attr = { .name = __stringify(_name), .mode = 0444 }, \
239 .attr = { .name = __stringify(_name), \
245 .attr = { .name = __stringify(_name), \
252 .attr = { .name = __stringify(_name), .mode = 0200 }, \
258 #define __ATTR_NULL { .attr = { .name = NULL } }
262 .attr = {.name = __stringify(_name), .mode = _mode, \
294 struct attribute attr; member
304 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
318 #define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&(bin_attr)->attr)
322 .attr = { .name = __stringify(_name), .mode = _mode }, \
329 .attr = { .name = __stringify(_name), .mode = 0444 }, \
335 .attr = { .name = __stringify(_name), .mode = 0200 }, \
360 .attr = { .name = __stringify(_name), .mode = 0400 }, \
375 .attr = { .name = __stringify(_name), .mode = _mode }, \
405 const struct attribute *attr,
408 const struct attribute * const *attr);
410 const struct attribute *attr, umode_t mode);
412 const struct attribute *attr);
414 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
416 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
417 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
420 const struct bin_attribute *attr);
422 const struct bin_attribute *attr);
451 const struct attribute *attr, const char *group);
453 const struct attribute *attr, const char *group);
467 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
493 struct bin_attribute *attr, char *buf,
532 const struct attribute *attr, in sysfs_create_file_ns() argument
539 const struct attribute * const *attr) in sysfs_create_files() argument
545 const struct attribute *attr, umode_t mode) in sysfs_chmod_file() argument
552 const struct attribute *attr) in sysfs_break_active_protection() argument
562 const struct attribute *attr, in sysfs_remove_file_ns() argument
568 const struct attribute *attr) in sysfs_remove_file_self() argument
574 const struct attribute * const *attr) in sysfs_remove_files() argument
579 const struct bin_attribute *attr) in sysfs_create_bin_file() argument
585 const struct bin_attribute *attr) in sysfs_remove_bin_file() argument
653 const struct attribute *attr, const char *group) in sysfs_add_file_to_group() argument
659 const struct attribute *attr, const char *group) in sysfs_remove_file_from_group() argument
695 const char *attr) in sysfs_notify() argument
756 struct bin_attribute *attr, in sysfs_bin_attr_simple_read() argument
765 const struct attribute *attr) in sysfs_create_file() argument
767 return sysfs_create_file_ns(kobj, attr, NULL); in sysfs_create_file()
771 const struct attribute *attr) in sysfs_remove_file() argument
773 sysfs_remove_file_ns(kobj, attr, NULL); in sysfs_remove_file()