Received: by 10.213.65.68 with SMTP id h4csp1549568imn; Thu, 15 Mar 2018 02:58:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELtR7xJjhruujIEGK3fE0XuA3jEJdPXLGq/vAGhPyut6yKYBAL0RfEoD/3MCJqwOqVmvyria X-Received: by 10.101.85.143 with SMTP id j15mr6143816pgs.387.1521107882458; Thu, 15 Mar 2018 02:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521107882; cv=none; d=google.com; s=arc-20160816; b=e3QWkdfN8YGjzridkPblNzU8ky08rk221tFmnSFKPy1ak6wzV1yvxGFH0otClj64rL 8vlkbaswnJPaWCXyqR+s39RpHFQY31WQk/RskTY311c/8C8F9WmKtF8dtPtA3M6+TcRb Nl+0DPiN0vxLpFBJOeg4IeCKTZgeH06H+ENSDcnIpKyDSysULtT/iD+tv8xMPmfdWTJK bQ95t4hPR0hcaUD4KzIAV6MVzz/g7vqQS9dZcSh+E5uRa9S127kkrVaQlK0eXclFKqZi t/4YGC5z9Z+fWcS1eI15gU5oNOFze1ZPcGMK4rjliFyfSwHc2IRtQf0gkpa4Yst+Nblt qmtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=/b2NMSKM8dZfhRvLmmwdX7PDP65bnUhggvf7jVmqWxY=; b=b2n/IVtwFcMkQonGC+nNDkPj5ee/JsTfRoPR3p3WSQuP1zCBUoTwVjuuRyAqhNb4PR 9RUP8kTzM7ExD4BYg/sI3dktIsKM0EU6tOcjDa1y7IWuWgGw1AdNSY2jeZsaTCOsZ3Of Mua0/JfAtHsqnYWo5DTxUCzifMgTp1qj8VSGtdiQTupAmUqQj67XNnGwQrhhQFVelSNF yAz+gJzZmFiG5XCddKw97HG+M2jzCj0Oz4ypxwwI4Nt2TQ2BqBNj7t1mbZqhJS4z/lMX ryQjjcuk2miR2FIJ5Sbi8QT3QCmhkCDLccr2IfTijg2sVl9gGCJFipOXCAKj5WiMH4O3 +KfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e33-v6si3657814pld.493.2018.03.15.02.57.48; Thu, 15 Mar 2018 02:58:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751945AbeCOJzh (ORCPT + 99 others); Thu, 15 Mar 2018 05:55:37 -0400 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:50416 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527AbeCOJze (ORCPT ); Thu, 15 Mar 2018 05:55:34 -0400 Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.224.233]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id B3DA730C027; Thu, 15 Mar 2018 02:55:33 -0700 (PDT) Received: from bld-bun-01.bun.broadcom.com (bld-bun-01.bun.broadcom.com [10.176.128.83]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id 920E181EBF; Thu, 15 Mar 2018 02:55:33 -0700 (PDT) Received: by bld-bun-01.bun.broadcom.com (Postfix, from userid 25152) id 42D04B05101; Thu, 15 Mar 2018 10:55:31 +0100 (CET) From: Arend van Spriel To: Greg Kroah-Hartman Cc: LKML , Brian Norris , Arend van Spriel Subject: [PATCH for-4.16 1/3] sysfs: improve devices-coredump description with user-space perspective Date: Thu, 15 Mar 2018 10:55:23 +0100 Message-Id: <1521107725-25027-2-git-send-email-aspriel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521107725-25027-1-git-send-email-aspriel@gmail.com> References: <1521107725-25027-1-git-send-email-aspriel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of referring to kernel internals, describe the ABI from user-space perspective to clarify what can be expected when using it. Signed-off-by: Arend van Spriel --- Documentation/ABI/testing/sysfs-devices-coredump | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-devices-coredump b/Documentation/ABI/testing/sysfs-devices-coredump index e459368..d5a4c75 100644 --- a/Documentation/ABI/testing/sysfs-devices-coredump +++ b/Documentation/ABI/testing/sysfs-devices-coredump @@ -2,9 +2,13 @@ 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. + When present the /sys/devices/.../coredump attribute can be used + to trigger a coredump of the device. The coredump contents are + device driver specific and thus vary. The coredump attribute is + writeonly. Anything written to this file will trigger creation + of the coredump. When the coredump is made available under + /sys/class/devcoredump it will generate a uevent. When the + coredump can not be successfully generated no ueven will occur. - Available when CONFIG_DEV_COREDUMP is enabled. + Available when CONFIG_DEV_COREDUMP is enabled and the device + driver supports coredump generation. -- 1.9.1