hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/ABI/testing/sysfs-class-pktcdvd
....@@ -11,15 +11,17 @@
1111 Contact: Thomas Maier <balagi@justmail.de>
1212 Description:
1313
14
- add: (WO) Write a block device id (major:minor) to
14
+ ========== ==============================================
15
+ add (WO) Write a block device id (major:minor) to
1516 create a new pktcdvd device and map it to the
1617 block device.
1718
18
- remove: (WO) Write the pktcdvd device id (major:minor)
19
+ remove (WO) Write the pktcdvd device id (major:minor)
1920 to remove the pktcdvd device.
2021
21
- device_map: (RO) Shows the device mapping in format:
22
+ device_map (RO) Shows the device mapping in format:
2223 pktcdvd[0-7] <pktdevid> <blkdevid>
24
+ ========== ==============================================
2325
2426
2527 What: /sys/class/pktcdvd/pktcdvd[0-7]/dev
....@@ -65,29 +67,31 @@
6567 KernelVersion: 2.6.20
6668 Contact: Thomas Maier <balagi@justmail.de>
6769 Description:
68
- size: (RO) Contains the size of the bio write queue.
70
+ ============== ================================================
71
+ size (RO) Contains the size of the bio write queue.
6972
70
- congestion_off: (RW) If bio write queue size is below this mark,
73
+ congestion_off (RW) If bio write queue size is below this mark,
7174 accept new bio requests from the block layer.
7275
73
- congestion_on: (RW) If bio write queue size is higher as this
76
+ congestion_on (RW) If bio write queue size is higher as this
7477 mark, do no longer accept bio write requests
7578 from the block layer and wait till the pktcdvd
7679 device has processed enough bio's so that bio
7780 write queue size is below congestion off mark.
7881 A value of <= 0 disables congestion control.
82
+ ============== ================================================
7983
8084
8185 Example:
8286 --------
83
-To use the pktcdvd sysfs interface directly, you can do:
87
+To use the pktcdvd sysfs interface directly, you can do::
8488
85
-# create a new pktcdvd device mapped to /dev/hdc
86
-echo "22:0" >/sys/class/pktcdvd/add
87
-cat /sys/class/pktcdvd/device_map
88
-# assuming device pktcdvd0 was created, look at stat's
89
-cat /sys/class/pktcdvd/pktcdvd0/stat/kb_written
90
-# print the device id of the mapped block device
91
-fgrep pktcdvd0 /sys/class/pktcdvd/device_map
92
-# remove device, using pktcdvd0 device id 253:0
93
-echo "253:0" >/sys/class/pktcdvd/remove
89
+ # create a new pktcdvd device mapped to /dev/hdc
90
+ echo "22:0" >/sys/class/pktcdvd/add
91
+ cat /sys/class/pktcdvd/device_map
92
+ # assuming device pktcdvd0 was created, look at stat's
93
+ cat /sys/class/pktcdvd/pktcdvd0/stat/kb_written
94
+ # print the device id of the mapped block device
95
+ fgrep pktcdvd0 /sys/class/pktcdvd/device_map
96
+ # remove device, using pktcdvd0 device id 253:0
97
+ echo "253:0" >/sys/class/pktcdvd/remove