All of lore.kernel.org
 help / color / mirror / Atom feed
* How to traverse the linked list of kernel modules
@ 2011-06-18 16:01 amit mehta
  2011-06-18 16:54 ` Prashant Shah
  0 siblings, 1 reply; 2+ messages in thread
From: amit mehta @ 2011-06-18 16:01 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* How to traverse the linked list of kernel modules
  2011-06-18 16:01 How to traverse the linked list of kernel modules amit mehta
@ 2011-06-18 16:54 ` Prashant Shah
  0 siblings, 0 replies; 2+ messages in thread
From: Prashant Shah @ 2011-06-18 16:54 UTC (permalink / raw)
  To: kernelnewbies

Hi,

> 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

I think can use the standard link list functions in the kernel :

list_for_each()
list_for_each_entry()

Regards.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-18 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-18 16:01 How to traverse the linked list of kernel modules amit mehta
2011-06-18 16:54 ` Prashant Shah

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.