Lines Matching full:update
35 const struct attribute_group *grp, int update) in create_files() argument
46 * In update mode, we're changing the permissions or in create_files()
50 if (update) in create_files()
78 if (update) in create_files()
107 static int internal_create_group(struct kobject *kobj, int update, in internal_create_group() argument
115 if (WARN_ON(!kobj || (!update && !kobj->sd))) in internal_create_group()
119 if (unlikely(update && !kobj->sd)) in internal_create_group()
128 if (update) { in internal_create_group()
131 pr_warn("Can't update unknown attr grp name: %s/%s\n", in internal_create_group()
148 error = create_files(kn, kobj, uid, gid, grp, update); in internal_create_group()
155 if (grp->name && update) in internal_create_group()
178 static int internal_create_groups(struct kobject *kobj, int update, in internal_create_groups() argument
188 error = internal_create_group(kobj, update, groups[i]); in internal_create_groups()
220 * @kobj: The kobject to update the group on
221 * @groups: The attribute groups to update, NULL terminated
223 * This function update a bunch of attribute groups. If an error occurs when
237 * sysfs_update_group - given a directory kobject, update an attribute group
238 * @kobj: The kobject to update the group on
239 * @grp: The attribute group to update
245 * callback, it will update the permissions and add or remove the