diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-27 16:23:24 +0300 |
---|---|---|
committer | Petr Pavlu <petr.pavlu@suse.com> | 2025-01-26 15:05:24 +0300 |
commit | 4723f16de64e1580ec5dc15173f8da0b316b2257 (patch) | |
tree | c21335c8aaf1a28c26ef2ec17f21df56201d81cb /scripts/gdb/linux | |
parent | f47c0bebed44673c54a6a1870f04a2261db28ca0 (diff) | |
download | linux-4723f16de64e1580ec5dc15173f8da0b316b2257.tar.xz |
module: sysfs: Add notes attributes through attribute_group
A kobject is meant to manage the lifecycle of some resource.
However the module sysfs code only creates a kobject to get a
"notes" subdirectory in sysfs.
This can be achieved easier and cheaper by using a sysfs group.
Switch the notes attribute code to such a group, similar to how the
section allocation in the same file already works.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20241227-sysfs-const-bin_attr-module-v2-5-e267275f0f37@weissschuh.net
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions