mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
cca3e70730
Recent tools do not want to use /proc to retrieve module information. A few values are currently missing from sysfs to replace the information available in /proc/modules. This adds /sys/module/*/{coresize,initsize,taint} attributes. TAINT_PROPRIETARY_MODULE (P) and TAINT_OOT_MODULE (O) flags are both always shown now, and do no longer exclude each other, also in /proc/modules. Replace the open-coded sysfs attribute initializers with the __ATTR() macro. Add the new attributes to Documentation/ABI. Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
What: /sys/module/pch_phub/drivers/.../pch_mac
|
|
Date: August 2010
|
|
KernelVersion: 2.6.35
|
|
Contact: masa-korg@dsn.okisemi.com
|
|
Description: Write/read GbE MAC address.
|
|
|
|
What: /sys/module/pch_phub/drivers/.../pch_firmware
|
|
Date: August 2010
|
|
KernelVersion: 2.6.35
|
|
Contact: masa-korg@dsn.okisemi.com
|
|
Description: Write/read Option ROM data.
|
|
|
|
|
|
What: /sys/module/ehci_hcd/drivers/.../uframe_periodic_max
|
|
Date: July 2011
|
|
KernelVersion: 3.1
|
|
Contact: Kirill Smelkov <kirr@mns.spb.ru>
|
|
Description: Maximum time allowed for periodic transfers per microframe (μs)
|
|
|
|
[ USB 2.0 sets maximum allowed time for periodic transfers per
|
|
microframe to be 80%, that is 100 microseconds out of 125
|
|
microseconds (full microframe).
|
|
|
|
However there are cases, when 80% max isochronous bandwidth is
|
|
too limiting. For example two video streams could require 110
|
|
microseconds of isochronous bandwidth per microframe to work
|
|
together. ]
|
|
|
|
Through this setting it is possible to raise the limit so that
|
|
the host controller would allow allocating more than 100
|
|
microseconds of periodic bandwidth per microframe.
|
|
|
|
Beware, non-standard modes are usually not thoroughly tested by
|
|
hardware designers, and the hardware can malfunction when this
|
|
setting differ from default 100.
|
|
|
|
What: /sys/module/*/{coresize,initsize}
|
|
Date: Jan 2012
|
|
KernelVersion:»·3.3
|
|
Contact: Kay Sievers <kay.sievers@vrfy.org>
|
|
Description: Module size in bytes.
|
|
|
|
What: /sys/module/*/taint
|
|
Date: Jan 2012
|
|
KernelVersion:»·3.3
|
|
Contact: Kay Sievers <kay.sievers@vrfy.org>
|
|
Description: Module taint flags:
|
|
P - proprietary module
|
|
O - out-of-tree module
|
|
F - force-loaded module
|
|
C - staging driver module
|