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)
107 static int internal_create_group(struct kobject *kobj, int update,
115 if (WARN_ON(!kobj || (!update && !kobj->sd)))
119 if (unlikely(update && !kobj->sd))
130 if (update) {
133 pr_warn("Can't update unknown attr grp name: %s/%s\n",
152 error = create_files(kn, kobj, uid, gid, grp, update);
159 if (grp->name && update)
182 static int internal_create_groups(struct kobject *kobj, int update,
192 error = internal_create_group(kobj, update, groups[i]);
224 * @kobj: The kobject to update the group on
225 * @groups: The attribute groups to update, NULL terminated
227 * This function update a bunch of attribute groups. If an error occurs when
241 * sysfs_update_group - given a directory kobject, update an attribute group
242 * @kobj: The kobject to update the group on
243 * @grp: The attribute group to update
249 * callback, it will update the permissions and add or remove the