提交 9b58eae4 编写于 作者: A Aishwarya Pant 提交者: Jonathan Corbet

Documentation/ABI: clean up sysfs-class-pktcdvd

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: NAishwarya Pant <aishpant@gmail.com>
Signed-off-by: NJonathan Corbet <corbet@lwn.net>
上级 8fcce580
What: /sys/class/pktcdvd/ sysfs interface
---------------
The pktcdvd module (packet writing driver) creates the following files in the
sysfs: (<devid> 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 Date: Oct. 2006
KernelVersion: 2.6.20 KernelVersion: 2.6.20
Contact: Thomas Maier <balagi@justmail.de> Contact: Thomas Maier <balagi@justmail.de>
Description: 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.
The pktcdvd module (packet writing driver) creates remove: (WO) Write the pktcdvd device id (major:minor)
these files in the sysfs: to remove the pktcdvd device.
(<devid> is in format major:minor )
/sys/class/pktcdvd/ device_map: (RO) Shows the device mapping in format:
add (0200) Write a block device id (major:minor) pktcdvd[0-7] <pktdevid> <blkdevid>
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: What: /sys/class/pktcdvd/pktcdvd[0-7]/dev
pktcdvd[0-7] <pktdevid> <blkdevid> What: /sys/class/pktcdvd/pktcdvd[0-7]/uevent
Date: Oct. 2006
KernelVersion: 2.6.20
Contact: Thomas Maier <balagi@justmail.de>
Description:
dev: (RO) Device id
uevent: (WO) To send a uevent
/sys/class/pktcdvd/pktcdvd[0-7]/ What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_started
dev (0444) Device id What: /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_finished
uevent (0200) To send an uevent. 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 <balagi@justmail.de>
Description:
packets_started: (RO) Number of started packets.
/sys/class/pktcdvd/pktcdvd[0-7]/stat/ packets_finished: (RO) Number of finished packets.
packets_started (0444) Number of started packets.
packets_finished (0444) Number of finished packets.
kb_written (0444) kBytes written. kb_written: (RO) 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 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 pktcdvd device statistic values, like
bytes read/written. bytes read/written.
/sys/class/pktcdvd/pktcdvd[0-7]/write_queue/
size (0444) Contains the size of the bio write What: /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/size
queue. What: /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/congestion_off
What: /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/congestion_on
congestion_off (0644) If bio write queue size is below Date: Oct. 2006
this mark, accept new bio requests KernelVersion: 2.6.20
from the block layer. Contact: Thomas Maier <balagi@justmail.de>
Description:
congestion_on (0644) If bio write queue size is higher size: (RO) Contains the size of the bio write queue.
as this mark, do no longer accept
bio write requests from the block congestion_off: (RW) If bio write queue size is below this mark,
layer and wait till the pktcdvd accept new bio requests from the block layer.
device has processed enough bio's
so that bio write queue size is congestion_on: (RW) If bio write queue size is higher as this
below congestion off mark. mark, do no longer accept bio write requests
A value of <= 0 disables congestion from the block layer and wait till the pktcdvd
control. 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: Example:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册