Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I get a list of all the modules that are currently loaded?

Tags:

module

erlang

module_info will tell me quite a bit of what I need to know about a module - provided that I know its name. I have a need to find all modules whose names meet specific criteria (like companyname_creator_serialnumber.) I remember reading somewhere that erlang stores this information, but I am looking for a way to retrieve it.

EDIT:

all_loaded() returns all the modules that have been loaded, but if the module I'm looking for hasn't been referenced yet, it isn't in the all_loaded list.

like image 720
Sniggerfardimungus Avatar asked Nov 30 '11 19:11

Sniggerfardimungus


People also ask

How do I list loaded modules?

To list all currently loaded modules in Linux, we can use the lsmod (list modules) command which reads the contents of /proc/modules like this.

Which tool is used to list loaded modules?

Use the lsmod command to list the modules that are currently loaded into the kernel.

Which command gives you a list of loaded kernel modules?

The lsmod command shows a list of the currently loaded kernel modules.


1 Answers

Is this what you are looking for?

code:all_loaded().
like image 110
Lukas Avatar answered Oct 29 '22 23:10

Lukas