modinfo elf headers, whereas sys is reading these from its runtime variant. I am no expert, but the difference here is that modinfo reads the module file itself for the parameters by looking in the. To check if modules without parameters in /sys show up as having parameters in modinfo but I couldnt find any.? Test -d /sys/module/$mod/parameters || echo modinfo $mod | grep parm cat /proc/modules | cut -d " " -f1 | while read mod do Would come out ugly as a comment, but I did this check on my system. This is what the output will look like, there is a section Parameters: linux ~ # systool -vm btusb It comes with the sysfsutils package on most systems. Parameter: allow_unsafe_assigned_interrupts -> N Parameter: emulate_invalid_guest_state -> N Parameter: new_array -> cat: /sys/module/md_mod/parameters/new_array: Permission denied Ls /sys/module/$module/parameters/ | while read parameter do \Ĭat /sys/module/$module/parameters/$parameter \ You can do it by using this simple one way command, which uses the /proc/modules and /sys virtual filesystems: cat /proc/modules | cut -f 1 -d " " | while read module do \
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |