summaryrefslogtreecommitdiffstats
path: root/include/acpi/platform/acgccex.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2024-02-22 21:41:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-23 07:34:26 +0100
commitaa3c88990f77bb9acb3d445337bc088031ac63f9 (patch)
treef2bc2493140b290a18a3db116e9e30be336c252d /include/acpi/platform/acgccex.h
parentsysfs: Fix crash on empty group attributes array (diff)
downloadlinux-aa3c88990f77bb9acb3d445337bc088031ac63f9.tar.xz
linux-aa3c88990f77bb9acb3d445337bc088031ac63f9.zip
sysfs: Document new "group visible" helpers
Add documentation and examples for how to use DEFINE_SYSFS_GROUP_VISIBLE() and SYSFS_GROUP_VISIBLE(). Recall that the motivation for this work is that it is easier to reason about the lifetime of statically defined sysfs attributes that become visible at device_add() time rather than dynamically adding them later. DEFINE_SYSFS_GROUP_VISIBLE() tackles one of the reasons to opt for dynamically created attributes which did not have a facility for hiding empty directories. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Link: https://lore.kernel.org/r/170863446065.1479840.10697164014098377292.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/acpi/platform/acgccex.h')
0 files changed, 0 insertions, 0 deletions