Init_modules() is located in kernel/module.c.
The init_modules() function initializes the kernel module subsystem's nsyms parameter.