Received: by 10.223.185.116 with SMTP id b49csp687318wrg; Fri, 23 Feb 2018 05:19:33 -0800 (PST) X-Google-Smtp-Source: AH8x224ANxiPncM37LnSPnfG/yOSsxuw1Tk+6lWOmFoLuEB2sZinAc9LBNEQhYNpUlgTm7p4h3H4 X-Received: by 2002:a17:902:6716:: with SMTP id f22-v6mr1738409plk.180.1519391972945; Fri, 23 Feb 2018 05:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519391972; cv=none; d=google.com; s=arc-20160816; b=zCO8ehrmBfAA4AUwxR6JZP6/ChszIsM4mgfNpYWGqgMF5KgB2Nn/F9kxUIcdOK2G1i OWxrqdmnU/nqRfc1TC09r1n1cOMqTqa6vSxBWBBmDs1m/2nqSlfL4+zA1LtF1CZNJYsf qSaXQlFs10rMre8I++j7dZV4RiYt7Zc8G+C/rHaDXDnKtC2YMiI7OydfsSYhRh0vO557 qzpSbMn1V+f2RIsS+AQZarKMkSg69dpkuFXmoNw6zsgROvyoyWtV41WPOeCHzJp34Sfn UpKJa59ci6DFmytxJUtJeCwjoDCkxaulB19rQM6Oxh5Wi0Vzk2nkulKWYsvUFJfdzGdw JN5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=3Cel6ihyHaatehwQY0uV+uzpvTe+wT6RZQrqWcEUMVM=; b=hIMsSInBejp202nG0+8cMFcG5RTfzsA8EHZytH7TvFry4x+FdJBcrnhQhehRSd/VjK Hoz+bl6sRvDdj9sZoxyVaGsIfET9UmtnKRN+VbqwrvnAesBOhNgTPGtEMI7PLQh6Z7lh WAfVOJ4w36FTErygSIic2UcKaIULlY5Sqkj0dxefcvgrvMpujk/MYupXgxQvd+m/zHID A819oTKCB23Fv8vAYus2ym5ATKyTE/UzZ+/2ZubyGiakYFOtZm5sjFYZ3gf/FT4stBkG RV5TvfccolO3jOXrrXoRAbKgrBaqjt0Cjri7QNE0TCW+3oYgj0VBBrK8Ua98xS6feSSv YyJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=De5OdvHf; 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=pass (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 i33-v6si1783252pld.212.2018.02.23.05.19.17; Fri, 23 Feb 2018 05:19:32 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=De5OdvHf; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbeBWNQk (ORCPT + 99 others); Fri, 23 Feb 2018 08:16:40 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34973 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751410AbeBWNQi (ORCPT ); Fri, 23 Feb 2018 08:16:38 -0500 Received: by mail-pl0-f66.google.com with SMTP id bb3so4879947plb.2; Fri, 23 Feb 2018 05:16:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=3Cel6ihyHaatehwQY0uV+uzpvTe+wT6RZQrqWcEUMVM=; b=De5OdvHfUKrhZ6S60lcsalp7Mu18LxR8A5mweuIlqEhA6Rlx8GT2RGpesUkFNHiJLL gjaTZRnl8Kw3njueA2OUq7jzueHIjCghRRpma6mAD7K4boONdmLVEl8P0/7iknJLsZpa rogt5yDPX2sT1QBTgA7VG4zzcwB6ZOExExAcI51txmFOEh7xRmy98mRGBNKbG/o6re8h FeNynQuCBKvdHOlLR60fPFOvgpDZXRvEG1QTnQPLiRATlgDI7oF1YnawNbD46pkaaBB3 1JeYw84Qnzk3RIctWkLOHhDzpuWY3wq5Dk/0twrQqTz7ZX4Ks0Tato+xT4m1eIF+a3vQ yzOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=3Cel6ihyHaatehwQY0uV+uzpvTe+wT6RZQrqWcEUMVM=; b=HnxkLmQ7uiCa0Uditfqr+30pQHKAlxWy6j2B1CO/9rTlFsdtBSYIKTA7oO50iHPbpZ xuxaqcixHz70ZE7QhLo9D9vzqVMUghJ9ICNU2dj89Ln4s58hhj6d4Unf5XRPBvcjUT5o kLf2Ity4ymlqJo80Jc5qkV8TJZR1dfFL51jK1KI7FnYxuZvtf/Ci7eDSLJfPK8vrosMS oSz/9B6zyK5F2ECQUtU17SVfYsHNO5dAhKsroLbwb60FBBV4vbHWYUGZ79q/tgB/lheD Edz8gHm0BtxBV7ipCyCzQsvOducKdVq0UgKCtsYxOi6pyYaJXuaDCDKh8GWZyyhKvwuf S7og== X-Gm-Message-State: APf1xPCe7JWH2dZPuyC+NL3P6j/EiPojZB2vIZgDTXGvLAT/oxLd7SdR vEA5UaFrrvJOU4E4D6IIlVeAsg== X-Received: by 2002:a17:902:8f89:: with SMTP id z9-v6mr1739633plo.370.1519391797641; Fri, 23 Feb 2018 05:16:37 -0800 (PST) Received: from mordor.localdomain ([183.82.19.191]) by smtp.gmail.com with ESMTPSA id a21sm5959676pfl.137.2018.02.23.05.16.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Feb 2018 05:16:37 -0800 (PST) Date: Fri, 23 Feb 2018 18:46:32 +0530 From: Aishwarya Pant To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Greg KH Cc: Julia Lawall Subject: [RESEND PATCH v2] Documentation/ABI: clean up sysfs-class-pktcdvd Message-ID: <20180223131632.GA21867@mordor.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes in v2: - Convert spaces to tabs Documentation/ABI/testing/sysfs-class-pktcdvd | 129 +++++++++++++++----------- 1 file changed, 75 insertions(+), 54 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-pktcdvd b/Documentation/ABI/testing/sysfs-class-pktcdvd index b1c3f0263359..dde4f26d0780 100644 --- a/Documentation/ABI/testing/sysfs-class-pktcdvd +++ b/Documentation/ABI/testing/sysfs-class-pktcdvd @@ -1,60 +1,81 @@ -What: /sys/class/pktcdvd/ -Date: Oct. 2006 -KernelVersion: 2.6.20 -Contact: Thomas Maier -Description: - sysfs interface --------------- +The pktcdvd module (packet writing driver) creates the following files in the +sysfs: ( is in the 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: + + 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 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 +Date: Oct. 2006 +KernelVersion: 2.6.20 +Contact: Thomas Maier +Description: + dev: (RO) Device id + + uevent: (WO) To send a 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.2