[Gllug] How to check if module is in kernel ?

salsaman at xs4all.nl salsaman at xs4all.nl
Mon Nov 15 12:47:13 UTC 2010


On Mon, November 15, 2010 13:12, Dylan wrote:
> On Monday 15 Nov 2010, Richard Jones wrote:
>> Looking for some evidence of the module by what devices, proc entries
>> or sys entries it exports is the right thing to do.  A variation on
>> this is to open and use the API blindly, and catch the errors when
>> specific API calls fail because the module is not present.
>
> I'm not a developer at all, but it seems strange that there is no
> recognised
> method for obtaining this information from the kernel - surely it must
> maintain a list of loaded and compiled in modules? How does lsmod get the
> information?
>

>From /proc/modules I think.

However /proc/kallsyms seems promising, as noted in my previous email.


Salsaman.


-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list