Unable to load modules to kernel and get module information

Executing the modprobe [module_name] with this function. Also the same function is used for the other calls like modinfo [module_name] which also fails to retrieve the module information.