Received: by 10.223.176.46 with SMTP id f43csp3929586wra; Tue, 23 Jan 2018 01:14:28 -0800 (PST) X-Google-Smtp-Source: AH8x2273Y1sBMuzJpifreoy7nFrQ1kQw+iZ4o6QHjcJEYkAHou6NiNeo+C2AjJ75k6ze8jKw6L+T X-Received: by 10.99.110.205 with SMTP id j196mr8307255pgc.54.1516698868594; Tue, 23 Jan 2018 01:14:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516698868; cv=none; d=google.com; s=arc-20160816; b=prRtUl+CeZ/YBcpOLBBHytB8W/6Rh03CUdfYPWxM/zd8dzg/j7evsr4TDDPZTHjOyT 5wkjIClZLg6Cn1SfzU1eqlPS4wGAiEFz4bUXHi05X2kuiQHnKe7inkjVfIowL32B8g15 QC9oQgfSXFG5HDTvceVcmwlsv5LE0Nnfw9fj/ACtvVJKG4TRMgo1V57o6cC0YTAibUfy 18KwelL4cMLrowSSCRS5icbCpMf2XVAiVISBdcHkMvoRidxioP/zXaRcOzfSztwFg6gn 4UumtlG52kUuncHnguFWp+cMeKjeZJlvSZWBAfi1PuvpqwvWnE6oX78AvQDIuGTWlfSm 2YPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=B2bjz8Dx3Fb8YkeXxVn0OKnnZFbGlThjFT9H0VmV5Lc=; b=GsZHt0NihznsFhN11RUEexJJJko+KiWDP5OT2rKDc/JX4E83WdSkntweYWjGEaXk25 7YD+RCTsS4CZk0BydVp0Y/qzpSk7PkCUz3SzVTyXgfY4o0tL8ZpY4XYZMMegW7TVeMnu J9sZtOW297xYtPu+A5Ep4y+y0G/QQWvgR9KfjOb4WKWYAsFnhhkc0iumsOQSMyOljl/d MASyOjm4ohvstS+m7OIT0fG1iN7zCMewWKbdkypDFIedG1n5I59KiznyuyxWC3NR5lEH Ocuir3uwVpzLArAedWiwVR2NLHtR0+uCO/ncsoRUYUYx0u2bUx5ba0HiHiU+5XCD+2u8 3RbQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e68si1190283pfa.298.2018.01.23.01.14.14; Tue, 23 Jan 2018 01:14:28 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184AbeAWJNO (ORCPT + 99 others); Tue, 23 Jan 2018 04:13:14 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:29743 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbeAWJNN (ORCPT ); Tue, 23 Jan 2018 04:13:13 -0500 X-IronPort-AV: E=Sophos;i="5.46,400,1511823600"; d="scan'208";a="252146405" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jan 2018 10:13:10 +0100 Date: Tue, 23 Jan 2018 10:13:09 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Aishwarya Pant cc: Thomas Maier , Jonathan Corbet , Greg KH , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH] Documentation/ABI: clean up sysfs-class-pktcdvd In-Reply-To: <20180123091032.GA18947@mordor.localdomain> Message-ID: References: <20180123091032.GA18947@mordor.localdomain> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Jan 2018, Aishwarya Pant wrote: > Clean up the sysfs documentation such that it is in the same format as > described in Documentation/ABI/README. Mainly, the patch moves the > attribute names to the 'What:' field. This might be useful for scripting > and tracking changes in the ABI. > > Signed-off-by: Aishwarya Pant > --- > Documentation/ABI/testing/sysfs-class-pktcdvd | 122 +++++++++++++++----------- > 1 file changed, 71 insertions(+), 51 deletions(-) > > diff --git a/Documentation/ABI/testing/sysfs-class-pktcdvd b/Documentation/ABI/testing/sysfs-class-pktcdvd > index b1c3f0263359..e85ec99c6e31 100644 > --- a/Documentation/ABI/testing/sysfs-class-pktcdvd > +++ b/Documentation/ABI/testing/sysfs-class-pktcdvd > @@ -1,60 +1,80 @@ > -What: /sys/class/pktcdvd/ > +sysfs interface > +--------------- > +The pktcdvd module (packet writing driver) creates the following files in the > +sysfs: ( is in format major:minor) > + > +What: /sys/class/pktcdvd/add > +What: /sys/class/pktcdvd/remove > +What: /sys/class/pktcdvd/device_map > Date: Oct. 2006 > KernelVersion: 2.6.20 > Contact: Thomas Maier > Description: > > -sysfs interface > ---------------- > + add: (WO) Write a block device id (major:minor) to create > + a new pktcdvd device and map it to the block device. > + > + remove: (WO) Write the pktcdvd device id (major:minor) to it to > + remove the pktcdvd device. > + > + device_map: (RO) Shows the device mapping in format: > + pktcdvd[0-7] > + > + > +What: /sys/class/pktcdvd/pktcdvd[0-7]/dev > +What: /sys/class/pktcdvd/pktcdvd[0-7]/uevent It looks like there is a small alignment problem here. Maybe you use spaces in one case and tabs in the other. julia > +Date: Oct. 2006 > +KernelVersion: 2.6.20 > +Contact: Thomas Maier > +Description: > + dev: (RO) Device id > + > + uevent: (WO) To send an uevent > + > + > +What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_started > +What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_finished > +What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_written > +What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read > +What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read_gather > +What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/reset > +Date: Oct. 2006 > +KernelVersion: 2.6.20 > +Contact: Thomas Maier > +Description: > + packets_started: (RO) Number of started packets. > + > + packets_finished: (RO) Number of finished packets. > + > + kb_written: (RO) kBytes written. > + > + kb_read: (RO) kBytes read. > + > + kb_read_gather: (RO) kBytes read to fill write packets. > + > + reset: (WO) Write any value to it to reset pktcdvd > + device statistic values, like bytes > + read/written. > + > + > +What: /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/size > +What: /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/congestion_off > +What: /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/congestion_on > +Date: Oct. 2006 > +KernelVersion: 2.6.20 > +Contact: Thomas Maier > +Description: > + size: (RO) Contains the size of the bio write queue. > + > + congestion_off: (RW) If bio write queue size is below this mark, > + accept new bio requests from the block layer. > > -The pktcdvd module (packet writing driver) creates > -these files in the sysfs: > -( is in format major:minor ) > - > -/sys/class/pktcdvd/ > - add (0200) Write a block device id (major:minor) > - to create a new pktcdvd device and map > - it to the block device. > - > - remove (0200) Write the pktcdvd device id (major:minor) > - to it to remove the pktcdvd device. > - > - device_map (0444) Shows the device mapping in format: > - pktcdvd[0-7] > - > -/sys/class/pktcdvd/pktcdvd[0-7]/ > - dev (0444) Device id > - uevent (0200) To send an uevent. > - > -/sys/class/pktcdvd/pktcdvd[0-7]/stat/ > - packets_started (0444) Number of started packets. > - packets_finished (0444) Number of finished packets. > - > - kb_written (0444) kBytes written. > - kb_read (0444) kBytes read. > - kb_read_gather (0444) kBytes read to fill write packets. > - > - reset (0200) Write any value to it to reset > - pktcdvd device statistic values, like > - bytes read/written. > - > -/sys/class/pktcdvd/pktcdvd[0-7]/write_queue/ > - size (0444) Contains the size of the bio write > - queue. > - > - congestion_off (0644) If bio write queue size is below > - this mark, accept new bio requests > - from the block layer. > - > - congestion_on (0644) If bio write queue size is higher > - as this mark, do no longer accept > - bio write requests from the block > - layer and wait till the pktcdvd > - device has processed enough bio's > - so that bio write queue size is > - below congestion off mark. > - A value of <= 0 disables congestion > - control. > + congestion_on: (RW) If bio write queue size is higher as this > + mark, do no longer accept bio write requests > + from the block layer and wait till the pktcdvd > + device has processed enough bio's so that bio > + write queue size is below congestion off mark. > + A value of <= 0 disables congestion control. > > > Example: > -- > 2.16.1 > >