Received: by 10.223.176.46 with SMTP id f43csp323916wra; Tue, 23 Jan 2018 21:56:30 -0800 (PST) X-Google-Smtp-Source: AH8x224Se693Pnyf1NyZx1WlMCz8cI1UZaEwCTXt7Slf+WC1eicfloSAYX6Ku8y3oSjKgzhqyUH2 X-Received: by 10.99.120.66 with SMTP id t63mr10008537pgc.375.1516773389903; Tue, 23 Jan 2018 21:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516773389; cv=none; d=google.com; s=arc-20160816; b=OUYUia6LkjLfc9SS4fv2mjcMJ4+le2U3yuerdRAPjg+jeC2vC6sOmpFsLuVZtKFMud Mubp4xtBU1gy/PnKj0NeheE6/D2ls6L+zZxSQVEixxBgnRJOgaEMhX+9zEjLKEG9MVv+ /y0OcbqpwIOG8k+/1WUrz5rlrmiRXvaEfQMvxUX8ZZwK35yBOVC05xT7TfdrjVdzG0OH 9j7lm90swtUCl9ImR5JpPi5sfRQpaHo+3dXTag86+tbl+G02Cpg4ZqKyV4E8osFNriZR YHGqahwfx3cHX6rB+lLWKn1lFK/sW+jnRqPaV7Iryx053MxE5zyPS0E9YTbbngDh0srk rJLw== 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=FUPH0z7k7vSTY5XLg7o9flgtme2Yh2+eJnJDr29EMG4=; b=gNGACJNT8K1q2F6QF4qVyaw4hT4a6Kpl2Z875OgIYxrHCwZbYcricnYb5DtU6vLvmg NdTFhfpRmNQp2hJtC2e4G0fUaPOcuy94ZNOztBBkPDi6ApxU1Iejiqs2pnKi+Y52ct/F s+XdBlpTxxLlWxHlyqbnVKPfVY/gWJvlyrFE37Y5+gxk227OeVmEUCZvW8QIuU9URndx 26r7r5h94s1nIaFSMRJHuqYK5zIPSKa8M8T499OnRo4d8RxznOoH1O79mBiG/32ppF/k 5EJdeXWkBnvGbyGDp0cXIMVJ8Ug8ObAtkWTfAVUfqbWxZoaUeoUg5WSrRvavWJC5VTzS VE9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aJ6jLr2y; 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 j192si15634326pge.14.2018.01.23.21.56.15; Tue, 23 Jan 2018 21:56:29 -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=aJ6jLr2y; 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 S1752429AbeAXFzu (ORCPT + 99 others); Wed, 24 Jan 2018 00:55:50 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:34879 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbeAXFzs (ORCPT ); Wed, 24 Jan 2018 00:55:48 -0500 Received: by mail-io0-f195.google.com with SMTP id m11so3576338iob.2; Tue, 23 Jan 2018 21:55:48 -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=FUPH0z7k7vSTY5XLg7o9flgtme2Yh2+eJnJDr29EMG4=; b=aJ6jLr2yFy9bdGW2AGO/WVq7eq08LKanKNX4dLYVOAVP2EYLRJcQOTzEzPG3j5bih9 qPlwzGYxA3n8Z48nM5/wC3BbvR2KTSF2n8JPi6FDs2HT0IObho2tVZ1oUdUYcyUrO/vB BZILWSfOJMSgwVsiippHy7CwyXsL2ltScYPun2NMMTKK3L2waJW4zTDzaYFJ4T2wUE6O j4EO2zFZdrD5khCgyPmy7vXNCNUsPge4lGiqU8h0hQAkt4DFVWHG88VzEtjwUPNunVBk fXUjae75QxOlrI3qwXKmW9a8JfnPcHFfogiBqBSjFgNu8Nzott0rju9AOXm84gXEVGL0 kW2g== 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=FUPH0z7k7vSTY5XLg7o9flgtme2Yh2+eJnJDr29EMG4=; b=a7se5JJVVIgevglHcVsQdtHNGhmGGApBp3HT5BegZni962XtH2tyws955sCEH5UlI+ Qql4oT2cYNEzOeaVOrdziUOWbZ6DWR4O+TGn042U3iDczrTyS+j24M5ZfpFkT8wJS943 zQJg7eGe6/06K8tLcXE2QY/26LFV+Z3rCza1nsbRcNCR+rZ6mKYs2xqRrR8IAIuPgMdZ tHhU4SpW2gje/RBOWujTHf1D/VfBCFZuPljSKj0uWWyaiH9TWRZR2S9hz+E5hTpAhGYx fDQARjNUWBIIhiHim4xqPw/qd6UrLH7pQZh+2cXsPd4QSoHTJDA83KuUuDroD2Xxiu8B HW5A== X-Gm-Message-State: AKwxytfTF7HUR5m+B1UiKjlqpESjeDhdjV/WzroHEIBJG9JDJguYWqQZ ggu+/qq5mbDGo7trHAjt/EDv3g== X-Received: by 10.107.155.16 with SMTP id d16mr7097025ioe.247.1516773347448; Tue, 23 Jan 2018 21:55:47 -0800 (PST) Received: from mordor.localdomain ([49.205.216.57]) by smtp.gmail.com with ESMTPSA id j3sm9581297iob.14.2018.01.23.21.55.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jan 2018 21:55:46 -0800 (PST) Date: Wed, 24 Jan 2018 11:25:40 +0530 From: Aishwarya Pant To: Thomas Maier , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Greg KH Cc: Julia Lawall Subject: [PATCH v2] Documentation/ABI: clean up sysfs-class-pktcdvd Message-ID: <20180124055540.GA6759@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 --- 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.1