Lines Matching full:update
47 const struct attribute_group *grp, int update) in create_files() argument
58 * In update mode, we're changing the permissions or in create_files()
62 if (update) in create_files()
91 if (update) in create_files()
120 static int internal_create_group(struct kobject *kobj, int update, in internal_create_group() argument
128 if (WARN_ON(!kobj || (!update && !kobj->sd))) in internal_create_group()
132 if (unlikely(update && !kobj->sd)) in internal_create_group()
150 if (update) { in internal_create_group()
155 /* may have been invisible prior to this update */ in internal_create_group()
156 update = 0; in internal_create_group()
164 if (!update) { in internal_create_group()
180 error = create_files(kn, kobj, uid, gid, grp, update); in internal_create_group()
187 if (grp->name && update) in internal_create_group()
210 static int internal_create_groups(struct kobject *kobj, int update, in internal_create_groups() argument
220 error = internal_create_group(kobj, update, groups[i]); in internal_create_groups()
252 * @kobj: The kobject to update the group on
253 * @groups: The attribute groups to update, NULL terminated
255 * This function update a bunch of attribute groups. If an error occurs when
269 * sysfs_update_group - given a directory kobject, update an attribute group
270 * @kobj: The kobject to update the group on
271 * @grp: The attribute group to update
277 * callback, it will update the permissions and add or remove the