Module Loading

Modules are compiled and stored as shared objects. Shared objects have usually appendix ".so". Shared objects can be loaded at runtime.

When you instruct the server to load a module using loadmodule command in the config file, it will call function load_module. The function will do the following:

Function register_module registers a module with the server core. By registration we mean the following set of steps (see function register_module in file sr_module.c for more details):