How to traverse the linked list of kernel modules

amit mehta gmate.amit at gmail.com
Sat Jun 18 12:01:15 EDT 2011


kernel modules are represented by the data structure(struct module) as
defined in ~include/linux/module.h, and they seem to be connected by a doubly
circular link list. Now suppose I want to access all the elements in
this linked list
of kernel modules(modules that show up in /proc/modules), then how should
i go about doing this ?

Regards,
amit



More information about the Kernelnewbies mailing list