1 sysfs interface 2 --------------- 3 The pktcdvd module (packet writing driver) cre 4 sysfs: (<devid> is in the format major:minor) 5 6 What: /sys/class/pktcdvd/add 7 What: /sys/class/pktcdvd/remove 8 What: /sys/class/pktcdvd/device_map 9 Date: Oct. 2006 10 KernelVersion: 2.6.20 11 Contact: Thomas Maier <balagi@justmail.d 12 Description: 13 14 ========== ============== 15 add (WO) Write a b 16 create a new p 17 block device. 18 19 remove (WO) Write the 20 to remove the 21 22 device_map (RO) Shows the 23 pktcdvd[0-7] < 24 ========== ============== 25 26 27 What: /sys/class/pktcdvd/pktcdvd[0-7 28 What: /sys/class/pktcdvd/pktcdvd[0-7 29 Date: Oct. 2006 30 KernelVersion: 2.6.20 31 Contact: Thomas Maier <balagi@justmail.d 32 Description: 33 dev: (RO) Device id 34 35 uevent: (WO) To send a uevent 36 37 38 What: /sys/class/pktcdvd/pktcdvd[0-7 39 What: /sys/class/pktcdvd/pktcdvd[0-7 40 What: /sys/class/pktcdvd/pktcdvd[0-7 41 What: /sys/class/pktcdvd/pktcdvd[0-7 42 What: /sys/class/pktcdvd/pktcdvd[0-7 43 What: /sys/class/pktcdvd/pktcdvd[0-7 44 Date: Oct. 2006 45 KernelVersion: 2.6.20 46 Contact: Thomas Maier <balagi@justmail.d 47 Description: 48 packets_started: (RO) N 49 50 packets_finished: (RO) N 51 52 kb_written: (RO) k 53 54 kb_read: (RO) k 55 56 kb_read_gather: (RO) k 57 58 reset: (WO) W 59 pktcdv 60 bytes 61 62 63 What: /sys/class/pktcdvd/pktcdvd[0-7 64 What: /sys/class/pktcdvd/pktcdvd[0-7 65 What: /sys/class/pktcdvd/pktcdvd[0-7 66 Date: Oct. 2006 67 KernelVersion: 2.6.20 68 Contact: Thomas Maier <balagi@justmail.d 69 Description: 70 ============== ============== 71 size (RO) Contains 72 73 congestion_off (RW) If bio wr 74 accept new bio 75 76 congestion_on (RW) If bio wr 77 mark, do no lo 78 from the block 79 device has pro 80 write queue si 81 A value of <= 82 ============== ============== 83 84 85 Example: 86 -------- 87 To use the pktcdvd sysfs interface directly, y 88 89 # create a new pktcdvd device mapped to /d 90 echo "22:0" >/sys/class/pktcdvd/add 91 cat /sys/class/pktcdvd/device_map 92 # assuming device pktcdvd0 was created, lo 93 cat /sys/class/pktcdvd/pktcdvd0/stat/kb_wr 94 # print the device id of the mapped block 95 fgrep pktcdvd0 /sys/class/pktcdvd/device_m 96 # remove device, using pktcdvd0 device id 97 echo "253:0" >/sys/class/pktcdvd/remove
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.