Lines Matching full:groups

220 				  const struct attribute_group **groups)  in internal_create_groups()  argument
225 if (!groups) in internal_create_groups()
228 for (i = 0; groups[i]; i++) { in internal_create_groups()
229 error = internal_create_group(kobj, update, groups[i]); in internal_create_groups()
232 sysfs_remove_group(kobj, groups[i]); in internal_create_groups()
240 * sysfs_create_groups - given a directory kobject, create a bunch of attribute groups
242 * @groups: The attribute groups to create, NULL terminated
244 * This function creates a bunch of attribute groups. If an error occurs when
245 * creating a group, all previously created groups will be removed, unwinding
253 const struct attribute_group **groups) in sysfs_create_groups() argument
255 return internal_create_groups(kobj, 0, groups); in sysfs_create_groups()
260 * sysfs_update_groups - given a directory kobject, create a bunch of attribute groups
262 * @groups: The attribute groups to update, NULL terminated
264 * This function update a bunch of attribute groups. If an error occurs when
265 * updating a group, all previously updated groups will be removed together
271 const struct attribute_group **groups) in sysfs_update_groups() argument
273 return internal_create_groups(kobj, 1, groups); in sysfs_update_groups()
337 * sysfs_remove_groups - remove a list of groups
339 * @kobj: The kobject for the groups to be removed from
340 * @groups: NULL terminated list of groups to be removed
342 * If groups is not NULL, remove the specified groups from the kobject.
345 const struct attribute_group **groups) in sysfs_remove_groups() argument
349 if (!groups) in sysfs_remove_groups()
351 for (i = 0; groups[i]; i++) in sysfs_remove_groups()
352 sysfs_remove_group(kobj, groups[i]); in sysfs_remove_groups()
607 * sysfs_groups_change_owner - change owner of a set of attribute groups.
608 * @kobj: The kobject containing the groups.
609 * @groups: The attribute groups.
616 const struct attribute_group **groups, in sysfs_groups_change_owner() argument
624 if (!groups) in sysfs_groups_change_owner()
627 for (i = 0; groups[i]; i++) { in sysfs_groups_change_owner()
628 error = sysfs_group_change_owner(kobj, groups[i], kuid, kgid); in sysfs_groups_change_owner()