• Home
  • Raw
  • Download

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
102 .attr = {.name = __stringify(_name), \
109 .attr = {.name = __stringify(_name), \
116 .attr = { .name = __stringify(_name), .mode = 0444 }, \
121 .attr = { .name = __stringify(_name), \
127 .attr = { .name = __stringify(_name), \
134 .attr = { .name = __stringify(_name), .mode = 0200 }, \
140 #define __ATTR_NULL { .attr = { .name = NULL } }
144 .attr = {.name = __stringify(_name), .mode = _mode, \
169 struct attribute attr; member
176 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
190 #define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&(bin_attr)->attr)
194 .attr = { .name = __stringify(_name), .mode = _mode }, \
201 .attr = { .name = __stringify(_name), .mode = 0444 }, \
207 .attr = { .name = __stringify(_name), .mode = 0200 }, \
250 const struct attribute *attr,
253 const struct attribute * const *attr);
255 const struct attribute *attr, umode_t mode);
257 const struct attribute *attr);
259 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
261 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
262 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
265 const struct bin_attribute *attr);
267 const struct bin_attribute *attr);
296 const struct attribute *attr, const char *group);
298 const struct attribute *attr, const char *group);
312 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
373 const struct attribute *attr, in sysfs_create_file_ns() argument
380 const struct attribute * const *attr) in sysfs_create_files() argument
386 const struct attribute *attr, umode_t mode) in sysfs_chmod_file() argument
393 const struct attribute *attr) in sysfs_break_active_protection() argument
403 const struct attribute *attr, in sysfs_remove_file_ns() argument
409 const struct attribute *attr) in sysfs_remove_file_self() argument
415 const struct attribute * const *attr) in sysfs_remove_files() argument
420 const struct bin_attribute *attr) in sysfs_create_bin_file() argument
426 const struct bin_attribute *attr) in sysfs_remove_bin_file() argument
494 const struct attribute *attr, const char *group) in sysfs_add_file_to_group() argument
500 const struct attribute *attr, const char *group) in sysfs_remove_file_from_group() argument
536 const char *attr) in sysfs_notify() argument
597 const struct attribute *attr) in sysfs_create_file() argument
599 return sysfs_create_file_ns(kobj, attr, NULL); in sysfs_create_file()
603 const struct attribute *attr) in sysfs_remove_file() argument
605 sysfs_remove_file_ns(kobj, attr, NULL); in sysfs_remove_file()