aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/debugfs-pktcdvd20
-rw-r--r--Documentation/ABI/testing/sysfs-class-pktcdvd72
-rw-r--r--Documentation/ABI/testing/sysfs-power17
3 files changed, 108 insertions, 1 deletions
diff --git a/Documentation/ABI/testing/debugfs-pktcdvd b/Documentation/ABI/testing/debugfs-pktcdvd
new file mode 100644
index 000000000000..03dbd883cc41
--- /dev/null
+++ b/Documentation/ABI/testing/debugfs-pktcdvd
@@ -0,0 +1,20 @@
1What: /debug/pktcdvd/pktcdvd[0-7]
2Date: Oct. 2006
3KernelVersion: 2.6.19
4Contact: Thomas Maier <balagi@justmail.de>
5Description:
6
7debugfs interface
8-----------------
9
10The pktcdvd module (packet writing driver) creates
11these files in debugfs:
12
13/debug/pktcdvd/pktcdvd[0-7]/
14 info (0444) Lots of human readable driver
15 statistics and infos. Multiple lines!
16
17Example:
18-------
19
20cat /debug/pktcdvd/pktcdvd0/info
diff --git a/Documentation/ABI/testing/sysfs-class-pktcdvd b/Documentation/ABI/testing/sysfs-class-pktcdvd
new file mode 100644
index 000000000000..c4c55edc9a5c
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-pktcdvd
@@ -0,0 +1,72 @@
1What: /sys/class/pktcdvd/
2Date: Oct. 2006
3KernelVersion: 2.6.19
4Contact: Thomas Maier <balagi@justmail.de>
5Description:
6
7sysfs interface
8---------------
9
10The pktcdvd module (packet writing driver) creates
11these files in the sysfs:
12(<devid> is in format major:minor )
13
14/sys/class/pktcdvd/
15 add (0200) Write a block device id (major:minor)
16 to create a new pktcdvd device and map
17 it to the block device.
18
19 remove (0200) Write the pktcdvd device id (major:minor)
20 to it to remove the pktcdvd device.
21
22 device_map (0444) Shows the device mapping in format:
23 pktcdvd[0-7] <pktdevid> <blkdevid>
24
25/sys/class/pktcdvd/pktcdvd[0-7]/
26 dev (0444) Device id
27 uevent (0200) To send an uevent.
28
29/sys/class/pktcdvd/pktcdvd[0-7]/stat/
30 packets_started (0444) Number of started packets.
31 packets_finished (0444) Number of finished packets.
32
33 kb_written (0444) kBytes written.
34 kb_read (0444) kBytes read.
35 kb_read_gather (0444) kBytes read to fill write packets.
36
37 reset (0200) Write any value to it to reset
38 pktcdvd device statistic values, like
39 bytes read/written.
40
41/sys/class/pktcdvd/pktcdvd[0-7]/write_queue/
42 size (0444) Contains the size of the bio write
43 queue.
44
45 congestion_off (0644) If bio write queue size is below
46 this mark, accept new bio requests
47 from the block layer.
48
49 congestion_on (0644) If bio write queue size is higher
50 as this mark, do no longer accept
51 bio write requests from the block
52 layer and wait till the pktcdvd
53 device has processed enough bio's
54 so that bio write queue size is
55 below congestion off mark.
56 A value of <= 0 disables congestion
57 control.
58
59
60Example:
61--------
62To use the pktcdvd sysfs interface directly, you can do:
63
64# create a new pktcdvd device mapped to /dev/hdc
65echo "22:0" >/sys/class/pktcdvd/add
66cat /sys/class/pktcdvd/device_map
67# assuming device pktcdvd0 was created, look at stat's
68cat /sys/class/pktcdvd/pktcdvd0/stat/kb_written
69# print the device id of the mapped block device
70fgrep pktcdvd0 /sys/class/pktcdvd/device_map
71# remove device, using pktcdvd0 device id 253:0
72echo "253:0" >/sys/class/pktcdvd/remove
diff --git a/Documentation/ABI/testing/sysfs-power b/Documentation/ABI/testing/sysfs-power
index d882f8093871..dcff4d0623ad 100644
--- a/Documentation/ABI/testing/sysfs-power
+++ b/Documentation/ABI/testing/sysfs-power
@@ -21,7 +21,7 @@ Description:
21 these states. 21 these states.
22 22
23What: /sys/power/disk 23What: /sys/power/disk
24Date: August 2006 24Date: September 2006
25Contact: Rafael J. Wysocki <rjw@sisk.pl> 25Contact: Rafael J. Wysocki <rjw@sisk.pl>
26Description: 26Description:
27 The /sys/power/disk file controls the operating mode of the 27 The /sys/power/disk file controls the operating mode of the
@@ -39,6 +39,19 @@ Description:
39 'reboot' - the memory image will be saved by the kernel and 39 'reboot' - the memory image will be saved by the kernel and
40 the system will be rebooted. 40 the system will be rebooted.
41 41
42 Additionally, /sys/power/disk can be used to turn on one of the
43 two testing modes of the suspend-to-disk mechanism: 'testproc'
44 or 'test'. If the suspend-to-disk mechanism is in the
45 'testproc' mode, writing 'disk' to /sys/power/state will cause
46 the kernel to disable nonboot CPUs and freeze tasks, wait for 5
47 seconds, unfreeze tasks and enable nonboot CPUs. If it is in
48 the 'test' mode, writing 'disk' to /sys/power/state will cause
49 the kernel to disable nonboot CPUs and freeze tasks, shrink
50 memory, suspend devices, wait for 5 seconds, resume devices,
51 unfreeze tasks and enable nonboot CPUs. Then, we are able to
52 look in the log messages and work out, for example, which code
53 is being slow and which device drivers are misbehaving.
54
42 The suspend-to-disk method may be chosen by writing to this 55 The suspend-to-disk method may be chosen by writing to this
43 file one of the accepted strings: 56 file one of the accepted strings:
44 57
@@ -46,6 +59,8 @@ Description:
46 'platform' 59 'platform'
47 'shutdown' 60 'shutdown'
48 'reboot' 61 'reboot'
62 'testproc'
63 'test'
49 64
50 It will only change to 'firmware' or 'platform' if the system 65 It will only change to 'firmware' or 'platform' if the system
51 supports that. 66 supports that.