]> git.ipfire.org Git - thirdparty/linux.git/commit
samples/kobject: add is_visible() callback to attribute group
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 29 Oct 2025 08:12:14 +0000 (09:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 14:16:35 +0000 (15:16 +0100)
commitc301a2e2d78c2c20d466c7e38568406471ede17d
tree8310b09aae0fed199919929612a7e97cf276af0c
parent7dd9fdb4939b972c1d0523e94fb3f70789653f0c
samples/kobject: add is_visible() callback to attribute group

There was no example for the is_visible() callback so far.

It will also become an example and test for the constification of
'struct attribute' later.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20251029-sysfs-const-attr-prep-v5-5-ea7d745acff4@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/kobject/kset-example.c