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
101 .attr = {.name = __stringify(_name), \
108 .attr = {.name = __stringify(_name), \
115 .attr = { .name = __stringify(_name), .mode = S_IRUGO }, \
120 .attr = { .name = __stringify(_name), .mode = S_IWUSR }, \
127 #define __ATTR_NULL { .attr = { .name = NULL } }
131 .attr = {.name = __stringify(_name), .mode = _mode, \
156 struct attribute attr; member
163 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
177 #define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&(bin_attr)->attr)
181 .attr = { .name = __stringify(_name), .mode = _mode }, \
188 .attr = { .name = __stringify(_name), .mode = S_IRUGO }, \
229 const struct attribute *attr,
232 const struct attribute **attr);
234 const struct attribute *attr, umode_t mode);
235 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
237 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
238 void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
241 const struct bin_attribute *attr);
243 const struct bin_attribute *attr);
270 const struct attribute *attr, const char *group);
272 const struct attribute *attr, const char *group);
285 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
330 const struct attribute *attr, in sysfs_create_file_ns() argument
337 const struct attribute **attr) in sysfs_create_files() argument
343 const struct attribute *attr, umode_t mode) in sysfs_chmod_file() argument
349 const struct attribute *attr, in sysfs_remove_file_ns() argument
355 const struct attribute *attr) in sysfs_remove_file_self() argument
361 const struct attribute **attr) in sysfs_remove_files() argument
366 const struct bin_attribute *attr) in sysfs_create_bin_file() argument
372 const struct bin_attribute *attr) in sysfs_remove_bin_file() argument
434 const struct attribute *attr, const char *group) in sysfs_add_file_to_group() argument
440 const struct attribute *attr, const char *group) in sysfs_remove_file_from_group() argument
476 const char *attr) in sysfs_notify() argument
492 const struct attribute *attr) in sysfs_create_file() argument
494 return sysfs_create_file_ns(kobj, attr, NULL); in sysfs_create_file()
498 const struct attribute *attr) in sysfs_remove_file() argument
500 sysfs_remove_file_ns(kobj, attr, NULL); in sysfs_remove_file()