Lines Matching defs:groups

183 				  const struct attribute_group **groups)
188 if (!groups)
191 for (i = 0; groups[i]; i++) {
192 error = internal_create_group(kobj, update, groups[i]);
195 sysfs_remove_group(kobj, groups[i]);
203 * sysfs_create_groups - given a directory kobject, create a bunch of attribute groups
205 * @groups: The attribute groups to create, NULL terminated
207 * This function creates a bunch of attribute groups. If an error occurs when
208 * creating a group, all previously created groups will be removed, unwinding
216 const struct attribute_group **groups)
218 return internal_create_groups(kobj, 0, groups);
223 * sysfs_update_groups - given a directory kobject, create a bunch of attribute groups
225 * @groups: The attribute groups to update, NULL terminated
227 * This function update a bunch of attribute groups. If an error occurs when
228 * updating a group, all previously updated groups will be removed together
234 const struct attribute_group **groups)
236 return internal_create_groups(kobj, 1, groups);
301 * sysfs_remove_groups - remove a list of groups
303 * @kobj: The kobject for the groups to be removed from
304 * @groups: NULL terminated list of groups to be removed
306 * If groups is not NULL, remove the specified groups from the kobject.
309 const struct attribute_group **groups)
313 if (!groups)
315 for (i = 0; groups[i]; i++)
316 sysfs_remove_group(kobj, groups[i]);
555 * sysfs_groups_change_owner - change owner of a set of attribute groups.
556 * @kobj: The kobject containing the groups.
557 * @groups: The attribute groups.
564 const struct attribute_group **groups,
572 if (!groups)
575 for (i = 0; groups[i]; i++) {
576 error = sysfs_group_change_owner(kobj, groups[i], kuid, kgid);