]> git.ipfire.org Git - thirdparty/linux.git/commit
docs: filesystems: sysfs: Recommend sysfs_emit() for new code only
authorBart Van Assche <bvanassche@acm.org>
Thu, 24 Jul 2025 15:34:42 +0000 (08:34 -0700)
committerJonathan Corbet <corbet@lwn.net>
Mon, 11 Aug 2025 17:16:13 +0000 (11:16 -0600)
commit2115dc3e3376b7bd5021950b45eebbcd992e9be9
tree12efa3ed222adfd9850c1f3056e219698c75ea9c
parent1f590377eb3c2680cb1101fa1a6a1f20a5fc4002
docs: filesystems: sysfs: Recommend sysfs_emit() for new code only

The advantages of converting existing sysfs show() methods to sysfs_emit()
and sysfs_emit_at() do not outweigh the risk of introducing bugs. Hence
recommend sysfs_emit() and sysfs_emit_at() only for new implementations of
show() methods.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250724153449.2433395-1-bvanassche@acm.org
Documentation/filesystems/sysfs.rst