• Home
  • Raw
  • Download

Lines Matching full:groups

180 				  const struct attribute_group **groups)  in internal_create_groups()  argument
185 if (!groups) in internal_create_groups()
188 for (i = 0; groups[i]; i++) { in internal_create_groups()
189 error = internal_create_group(kobj, update, groups[i]); in internal_create_groups()
192 sysfs_remove_group(kobj, groups[i]); in internal_create_groups()
200 * sysfs_create_groups - given a directory kobject, create a bunch of attribute groups
202 * @groups: The attribute groups to create, NULL terminated
204 * This function creates a bunch of attribute groups. If an error occurs when
205 * creating a group, all previously created groups will be removed, unwinding
213 const struct attribute_group **groups) in sysfs_create_groups() argument
215 return internal_create_groups(kobj, 0, groups); in sysfs_create_groups()
220 * sysfs_update_groups - given a directory kobject, create a bunch of attribute groups
222 * @groups: The attribute groups to update, NULL terminated
224 * This function update a bunch of attribute groups. If an error occurs when
225 * updating a group, all previously updated groups will be removed together
231 const struct attribute_group **groups) in sysfs_update_groups() argument
233 return internal_create_groups(kobj, 1, groups); in sysfs_update_groups()
298 * sysfs_remove_groups - remove a list of groups
300 * @kobj: The kobject for the groups to be removed from
301 * @groups: NULL terminated list of groups to be removed
303 * If groups is not NULL, remove the specified groups from the kobject.
306 const struct attribute_group **groups) in sysfs_remove_groups() argument
310 if (!groups) in sysfs_remove_groups()
312 for (i = 0; groups[i]; i++) in sysfs_remove_groups()
313 sysfs_remove_group(kobj, groups[i]); in sysfs_remove_groups()
552 * sysfs_groups_change_owner - change owner of a set of attribute groups.
553 * @kobj: The kobject containing the groups.
554 * @groups: The attribute groups.
561 const struct attribute_group **groups, in sysfs_groups_change_owner() argument
569 if (!groups) in sysfs_groups_change_owner()
572 for (i = 0; groups[i]; i++) { in sysfs_groups_change_owner()
573 error = sysfs_group_change_owner(kobj, groups[i], kuid, kgid); in sysfs_groups_change_owner()