Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934597AbdLSKD5 (ORCPT ); Tue, 19 Dec 2017 05:03:57 -0500 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:41369 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933571AbdLSKDz (ORCPT ); Tue, 19 Dec 2017 05:03:55 -0500 From: Arend van Spriel To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Arend van Spriel Subject: [PATCH 1/2] sysfs: add attribute specification for /sysfs/devices/.../coredump Date: Tue, 19 Dec 2017 11:03:21 +0100 Message-Id: <1513677802-3031-2-git-send-email-arend.vanspriel@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513677802-3031-1-git-send-email-arend.vanspriel@broadcom.com> References: <1513677802-3031-1-git-send-email-arend.vanspriel@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1176 Lines: 31 From: Arend van Spriel 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 --- Documentation/ABI/testing/sysfs-devices-coredump | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-coredump diff --git a/Documentation/ABI/testing/sysfs-devices-coredump b/Documentation/ABI/testing/sysfs-devices-coredump new file mode 100644 index 0000000..5989255 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-devices-coredump @@ -0,0 +1,10 @@ +What: /sys/devices/.../coredump +Date: December 2017 +Contact: Arend van Spriel +Description: + The /sys/devices/.../coredump attribute is only present when the + device is bound to a driver, which provides the .coredump() + callback. The attribute is write only. Anything written to this + file will trigger the .coredump() callback. + + Available when CONFIG_DEV_COREDUMP is enabled. -- 1.9.1