Lines Matching refs:update
36 const struct attribute_group *grp, int update)
47 * In update mode, we're changing the permissions or
51 if (update)
79 if (update)
108 static int internal_create_group(struct kobject *kobj, int update,
116 if (WARN_ON(!kobj || (!update && !kobj->sd)))
120 if (unlikely(update && !kobj->sd))
129 if (update) {
132 pr_warn("Can't update unknown attr grp name: %s/%s\n",
149 error = create_files(kn, kobj, uid, gid, grp, update);
156 if (grp->name && update)
179 static int internal_create_groups(struct kobject *kobj, int update,
189 error = internal_create_group(kobj, update, groups[i]);
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