Lines Matching refs:attr
23 struct attribute *const *attr; in remove_files() local
27 for (attr = grp->attrs; *attr; attr++) in remove_files()
28 kernfs_remove_by_name(parent, (*attr)->name); in remove_files()
31 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); in remove_files()
38 struct attribute *const *attr; in create_files() local
43 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files()
44 umode_t mode = (*attr)->mode; in create_files()
52 kernfs_remove_by_name(parent, (*attr)->name); in create_files()
54 mode = grp->is_visible(kobj, *attr, i); in create_files()
61 (*attr)->name, mode); in create_files()
64 error = sysfs_add_file_mode_ns(parent, *attr, mode, uid, in create_files()
77 umode_t mode = (*bin_attr)->attr.mode; in create_files()
81 (*bin_attr)->attr.name); in create_files()
90 (*bin_attr)->attr.name, mode); in create_files()
336 struct attribute *const *attr; in sysfs_merge_group() local
345 for ((i = 0, attr = grp->attrs); *attr && !error; (++i, ++attr)) in sysfs_merge_group()
346 error = sysfs_add_file_mode_ns(parent, *attr, (*attr)->mode, in sysfs_merge_group()
350 kernfs_remove_by_name(parent, (*--attr)->name); in sysfs_merge_group()
367 struct attribute *const *attr; in sysfs_unmerge_group() local
371 for (attr = grp->attrs; *attr; ++attr) in sysfs_unmerge_group()
372 kernfs_remove_by_name(parent, (*attr)->name); in sysfs_unmerge_group()
479 struct attribute *const *attr; in sysfs_group_attrs_change_owner() local
481 for (attr = grp->attrs; *attr; attr++) { in sysfs_group_attrs_change_owner()
482 kn = kernfs_find_and_get(grp_kn, (*attr)->name); in sysfs_group_attrs_change_owner()
497 kn = kernfs_find_and_get(grp_kn, (*bin_attr)->attr.name); in sysfs_group_attrs_change_owner()