Lines Matching full:groups
214 const struct attribute_group **groups) in internal_create_groups() argument
219 if (!groups) in internal_create_groups()
222 for (i = 0; groups[i]; i++) { in internal_create_groups()
223 error = internal_create_group(kobj, update, groups[i]); in internal_create_groups()
226 sysfs_remove_group(kobj, groups[i]); in internal_create_groups()
234 * sysfs_create_groups - given a directory kobject, create a bunch of attribute groups
236 * @groups: The attribute groups to create, NULL terminated
238 * This function creates a bunch of attribute groups. If an error occurs when
239 * creating a group, all previously created groups will be removed, unwinding
247 const struct attribute_group **groups) in sysfs_create_groups() argument
249 return internal_create_groups(kobj, 0, groups); in sysfs_create_groups()
254 * sysfs_update_groups - given a directory kobject, create a bunch of attribute groups
256 * @groups: The attribute groups to update, NULL terminated
258 * This function update a bunch of attribute groups. If an error occurs when
259 * updating a group, all previously updated groups will be removed together
265 const struct attribute_group **groups) in sysfs_update_groups() argument
267 return internal_create_groups(kobj, 1, groups); in sysfs_update_groups()
331 * sysfs_remove_groups - remove a list of groups
333 * @kobj: The kobject for the groups to be removed from
334 * @groups: NULL terminated list of groups to be removed
336 * If groups is not NULL, remove the specified groups from the kobject.
339 const struct attribute_group **groups) in sysfs_remove_groups() argument
343 if (!groups) in sysfs_remove_groups()
345 for (i = 0; groups[i]; i++) in sysfs_remove_groups()
346 sysfs_remove_group(kobj, groups[i]); in sysfs_remove_groups()
585 * sysfs_groups_change_owner - change owner of a set of attribute groups.
586 * @kobj: The kobject containing the groups.
587 * @groups: The attribute groups.
594 const struct attribute_group **groups, in sysfs_groups_change_owner() argument
602 if (!groups) in sysfs_groups_change_owner()
605 for (i = 0; groups[i]; i++) { in sysfs_groups_change_owner()
606 error = sysfs_group_change_owner(kobj, groups[i], kuid, kgid); in sysfs_groups_change_owner()