Lines Matching refs:attr
22 struct attribute *const *attr; in remove_files() local
26 for (attr = grp->attrs; *attr; attr++) in remove_files()
27 kernfs_remove_by_name(parent, (*attr)->name); in remove_files()
30 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); in remove_files()
37 struct attribute *const *attr; in create_files() local
42 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files()
43 umode_t mode = (*attr)->mode; in create_files()
51 kernfs_remove_by_name(parent, (*attr)->name); in create_files()
53 mode = grp->is_visible(kobj, *attr, i); in create_files()
60 (*attr)->name, mode); in create_files()
63 error = sysfs_add_file_mode_ns(parent, *attr, false, in create_files()
76 umode_t mode = (*bin_attr)->attr.mode; in create_files()
80 (*bin_attr)->attr.name); in create_files()
89 (*bin_attr)->attr.name, mode); in create_files()
93 &(*bin_attr)->attr, true, in create_files()
332 struct attribute *const *attr; in sysfs_merge_group() local
341 for ((i = 0, attr = grp->attrs); *attr && !error; (++i, ++attr)) in sysfs_merge_group()
342 error = sysfs_add_file_mode_ns(parent, *attr, false, in sysfs_merge_group()
343 (*attr)->mode, uid, gid, NULL); in sysfs_merge_group()
346 kernfs_remove_by_name(parent, (*--attr)->name); in sysfs_merge_group()
363 struct attribute *const *attr; in sysfs_unmerge_group() local
367 for (attr = grp->attrs; *attr; ++attr) in sysfs_unmerge_group()
368 kernfs_remove_by_name(parent, (*attr)->name); in sysfs_unmerge_group()