sysfs.txt: add note on available attribute macros
authorNicholas Mc Guire <hofrat@osadl.org>
Fri, 15 Feb 2019 07:29:48 +0000 (08:29 +0100)
committerJonathan Corbet <corbet@lwn.net>
Sun, 17 Feb 2019 22:53:01 +0000 (15:53 -0700)
commit44a47f0e3ec213a670c0170bb8ee588551ff1549
treefbfb00d3787d997525891ebd1efcd460828081ef
parent8a3680e21634d85886aa2901906c3b5df5840ce4
sysfs.txt: add note on available attribute macros

The common cases of attributes wrappers should probably be using the
__ATTR_XXX macros to make code more concise and readable but the current
sysfs.txt does not point developers to those convenience macros. Further
there is no note in sysfs.txt currently explaining why trying to set a
sysfs file to mode 0666 will fail respectively revert to 0664.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/filesystems/sysfs.txt