Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sysfs: add attribute specification for /sysfs/devices/.../coredump

This patch adds the specification for /sysfs/devices/.../coredump
which allows user-space to trigger a device coredump obtaining
binary data from the device for (fault) analysis. It relies on
CONFIG_DEV_COREDUMP being enabled.

Signed-off-by: Arend van Spriel <aspriel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arend van Spriel and committed by
Greg Kroah-Hartman
36d1d09a a5e19233

+10
+10
Documentation/ABI/testing/sysfs-devices-coredump
··· 1 + What: /sys/devices/.../coredump 2 + Date: December 2017 3 + Contact: Arend van Spriel <aspriel@gmail.com> 4 + Description: 5 + The /sys/devices/.../coredump attribute is only present when the 6 + device is bound to a driver, which provides the .coredump() 7 + callback. The attribute is write only. Anything written to this 8 + file will trigger the .coredump() callback. 9 + 10 + Available when CONFIG_DEV_COREDUMP is enabled.