drivers: base: add coredump driver ops
authorArend van Spriel <aspriel@gmail.com>
Thu, 11 Jan 2018 08:36:38 +0000 (09:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jan 2018 08:47:05 +0000 (09:47 +0100)
commit3c47d19ff4dccf1500c33bcbe3b5bc804907a0da
tree4bb4a54a7099b3048d32698728e0dbe5e5bf3adb
parent36d1d09af1b97113cd014fd50694000ac3ca2824
drivers: base: add coredump driver ops

This adds the coredump driver operation. When the driver defines it
a coredump file is added in the sysfs folder of the device upon
driver binding. The file is removed when the driver is unbound.
User-space can trigger a coredump for this device by echo'ing to
the coredump file.

Signed-off-by: Arend van Spriel <aspriel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/dd.c
include/linux/device.h