Lines Matching full:update
36 const struct attribute_group *grp, int update) in create_files() argument
47 * In update mode, we're changing the permissions or in create_files()
51 if (update) in create_files()
79 if (update) in create_files()
108 static int internal_create_group(struct kobject *kobj, int update, in internal_create_group() argument
116 if (WARN_ON(!kobj || (!update && !kobj->sd))) in internal_create_group()
120 if (unlikely(update && !kobj->sd)) in internal_create_group()
129 if (update) { in internal_create_group()
132 pr_warn("Can't update unknown attr grp name: %s/%s\n", in internal_create_group()
149 error = create_files(kn, kobj, uid, gid, grp, update); in internal_create_group()
156 if (grp->name && update) in internal_create_group()
179 static int internal_create_groups(struct kobject *kobj, int update, in internal_create_groups() argument
189 error = internal_create_group(kobj, update, groups[i]); in internal_create_groups()
221 * @kobj: The kobject to update the group on
222 * @groups: The attribute groups to update, NULL terminated
224 * This function update a bunch of attribute groups. If an error occurs when
238 * sysfs_update_group - given a directory kobject, update an attribute group
239 * @kobj: The kobject to update the group on
240 * @grp: The attribute group to update
246 * callback, it will update the permissions and add or remove the