forked from torvalds/linux
-
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.
modules: sysfs - export: taint, coresize, initsize
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 <[email protected]> Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information
1 parent
8487bfd
commit cca3e70
Showing
2 changed files
with
80 additions
and
29 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 |
---|---|---|
|
@@ -33,3 +33,19 @@ Description: Maximum time allowed for periodic transfers per microframe (μs) | |
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 <[email protected]> | ||
Description: Module size in bytes. | ||
|
||
What: /sys/module/*/taint | ||
Date: Jan 2012 | ||
KernelVersion:»·3.3 | ||
Contact: Kay Sievers <[email protected]> | ||
Description: Module taint flags: | ||
P - proprietary module | ||
O - out-of-tree module | ||
F - force-loaded module | ||
C - staging driver module |
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