1
0
Fork 0
alistair23-linux/fs/sysfs
Jiri Olsa aac1f7f95f sysfs: Add sysfs_update_groups function
Adding sysfs_update_groups function to update
multiple groups.

  sysfs_update_groups - given a directory kobject, create a bunch of attribute groups
  @kobj:      The kobject to update the group on
  @groups:    The attribute groups to update, NULL terminated

This function update a bunch of attribute groups.  If an error occurs when
updating a group, all previously updated groups will be removed together
with already existing (not updated) attributes.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190512155518.21468-2-jolsa@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2019-06-03 11:58:20 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
dir.c sysfs: convert BUG_ON to WARN_ON 2019-01-07 08:53:32 +01:00
file.c sysfs: remove unused include of kernfs-internal.h 2019-02-08 12:57:31 +01:00
group.c sysfs: Add sysfs_update_groups function 2019-06-03 11:58:20 +02:00
mount.c fix sysfs_init_fs_context() in !CONFIG_NET_NS case 2019-03-16 09:45:42 -04:00
symlink.c sysfs: convert BUG_ON to WARN_ON 2019-01-07 08:53:32 +01:00
sysfs.h sysfs, kobject: allow creating kobject belonging to arbitrary users 2018-07-20 23:44:35 -07:00