Received: by 10.223.176.46 with SMTP id f43csp3926938wra; Tue, 23 Jan 2018 01:11:26 -0800 (PST) X-Google-Smtp-Source: AH8x224GccvonL4yjwKrmKCcHTOIs+P680XEtZr6AAfKz0ihaXev5jNpGYxxThGlabCFpVM5Quyw X-Received: by 10.99.95.20 with SMTP id t20mr8490765pgb.79.1516698686346; Tue, 23 Jan 2018 01:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516698686; cv=none; d=google.com; s=arc-20160816; b=dksHtu8sjwAAjA9rquPT7aqEqOnAnUE87gVKgnJqkCB0X7O/8ASDuR+R+nCPnWBOzO 4Xssm+WqfY2fHreE9chBRtF8sAOy8p2+uIuKECbRzP9TPZE20s1ftdFFdEBJAuvOVz1H 5KaHQqCRSqSI7Y68+bfAskGZQynmZ3NWB13z9HaRxFmhm6GFT3FImEVfTajspFOcJ1Z4 tl3Mas/34faWJDOYZ7/DetPfB4bT40CqI1EiRvE0BVxouNJ3fH5D+Vi70PMUhxNtXFem I8G4oJL7hE9F+V0Y9tKR82RiqRuNYS7tSBsKb/0A684uzTUT4bpd9qsKxM4XtMhRPA4n i3Ww== 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=XqUpDrunQN+OPWqgvpZUVcuE+btD8slrQZb3lZMcZlM=; b=FGrkDGqIw7CQWev+pmeY1I+A0xnYNCw2P2ePCW+idsNtaH3FMUyD/oCN40daywTJNz ES15rK7y4yc/xmZ2oHELMC/8egXBVykMHpQtAtmSU7qwbnSoU3i05kuDEwFkgK4p7a6b lj9EWkEcf3z3csrkuS+ziVi4bAzdgG2ODATmID6my+aO+ktD4nr8e2fixQvMi1HKUqUH KbD32djm9xlUj7npH8j6+FLFITiH4s4IiSyFhAntF0zo9AXID25fS1pF1GZCIWP2KYCq MS7YMRmFZh+4naGbtMx15i2pGxp3O2FXKdrI4eTW747DugIzdFO99w4Xh3nTAiXhuz8z wlrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vhVrXT3L; 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=NONE 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 x14si14956678pgo.812.2018.01.23.01.11.12; Tue, 23 Jan 2018 01:11:26 -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=vhVrXT3L; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184AbeAWJKl (ORCPT + 99 others); Tue, 23 Jan 2018 04:10:41 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:39794 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750946AbeAWJKi (ORCPT ); Tue, 23 Jan 2018 04:10:38 -0500 Received: by mail-io0-f194.google.com with SMTP id b198so175550iof.6; Tue, 23 Jan 2018 01:10: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=XqUpDrunQN+OPWqgvpZUVcuE+btD8slrQZb3lZMcZlM=; b=vhVrXT3LaChhbVn80J4YuYzJ7MkAQLnjN7nH5bongv88HHVV8qTgufI906V5XS2vdV 4QyOvu/g3Xa0vs6zK9yiyFOM2lyLrTSh18+0B+4OQmWTFyLQC8oUOlrr58jBy2fskmwO kYGfMwQErE2lroGE9o76+gid5Cg8Mg5SHaV5YReFXCxfsvEI7vmDg/KRu4Ef5/3ealAJ G+Et7JnNMz8b4CnL3b1h7z9ewEgut6SG8vtEIceER3aTO8Q+Nb4j8mFyjVmHmg4EgFuc l/UW4981Y096zCOMheGOvI3mYYr8hvi22fC9kheoNCMCWxnpOf5u+pFDyfJLpkJg1fW4 8AOg== 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=XqUpDrunQN+OPWqgvpZUVcuE+btD8slrQZb3lZMcZlM=; b=hFVZ61Silin0OvUAFxobLF5GxZmZ01sIwVd6tSTHOAcaAU6j+jFveFRgSQTylRx1sf F+rZhG3sQcf0TmBedkdr2FYZmbmwiDZXjN3a1cZeRqDWx8OC7qnzKzASKqP/PO1k4JQ8 63/Jk5/OKPipVCBY7pYsEcbdKXGIIyJT1mBlHobPYHKxVF1si4zBYkTg0HJSs/33AmYf vnNevuhUixxC2GCZxIRWS5BnchdVNKwLsHpMgJVsB5hAg2+HvF767Yl0nwzzyxYB0GLy XuJu8dPtCzGa3eHm7XvmUGNhTOxYOkyTslIg3T8kXDw04CVhzY08OcNc8yFfcDR4kn+z 2XNg== X-Gm-Message-State: AKwxytcJ5q301XjdubVzJkQ0JcRB2YGaxFzNjG6+6cf3NRd27B/f3kFM T372y3MVqh4e3idz0FqZh/umsQ== X-Received: by 10.107.26.66 with SMTP id a63mr2775149ioa.93.1516698637642; Tue, 23 Jan 2018 01:10:37 -0800 (PST) Received: from mordor.localdomain ([49.205.216.57]) by smtp.gmail.com with ESMTPSA id q62sm5094488itb.31.2018.01.23.01.10.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jan 2018 01:10:37 -0800 (PST) Date: Tue, 23 Jan 2018 14:40:32 +0530 From: Aishwarya Pant To: Thomas Maier , Jonathan Corbet , Greg KH , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Cc: Julia Lawall Subject: [PATCH] Documentation/ABI: clean up sysfs-class-pktcdvd Message-ID: <20180123091032.GA18947@mordor.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) 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 --- 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 +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