-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 44260 b: refs/heads/master c: cd39301 h: refs/heads/master v: v3
- Loading branch information
Linus Torvalds
committed
Dec 12, 2006
1 parent
308e8e0
commit f67e0b5
Showing
1,776 changed files
with
76,848 additions
and
35,417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 3fc0eb47aa96b1d9230ff85b722c45c3b9e83d14 | ||
refs/heads/master: cd39301a68f9604854f3543117b01dc73cbe193f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
What: /debug/pktcdvd/pktcdvd[0-7] | ||
Date: Oct. 2006 | ||
KernelVersion: 2.6.19 | ||
Contact: Thomas Maier <balagi@justmail.de> | ||
Description: | ||
|
||
debugfs interface | ||
----------------- | ||
|
||
The pktcdvd module (packet writing driver) creates | ||
these files in debugfs: | ||
|
||
/debug/pktcdvd/pktcdvd[0-7]/ | ||
info (0444) Lots of human readable driver | ||
statistics and infos. Multiple lines! | ||
|
||
Example: | ||
------- | ||
|
||
cat /debug/pktcdvd/pktcdvd0/info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
What: /sys/class/pktcdvd/ | ||
Date: Oct. 2006 | ||
KernelVersion: 2.6.19 | ||
Contact: Thomas Maier <balagi@justmail.de> | ||
Description: | ||
|
||
sysfs interface | ||
--------------- | ||
|
||
The pktcdvd module (packet writing driver) creates | ||
these files in the sysfs: | ||
(<devid> 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] <pktdevid> <blkdevid> | ||
|
||
/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. | ||
|
||
|
||
Example: | ||
-------- | ||
To use the pktcdvd sysfs interface directly, you can do: | ||
|
||
# create a new pktcdvd device mapped to /dev/hdc | ||
echo "22:0" >/sys/class/pktcdvd/add | ||
cat /sys/class/pktcdvd/device_map | ||
# assuming device pktcdvd0 was created, look at stat's | ||
cat /sys/class/pktcdvd/pktcdvd0/stat/kb_written | ||
# print the device id of the mapped block device | ||
fgrep pktcdvd0 /sys/class/pktcdvd/device_map | ||
# remove device, using pktcdvd0 device id 253:0 | ||
echo "253:0" >/sys/class/pktcdvd/remove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.