What's the difference between insmod and modprobe?

前端 未结 4 1391
栀梦
栀梦 2021-02-19 21:20

I know insmod and modprobe are used to insert module into the kernel. But, what\'s the difference between them?

And, why is it dangerous to ins

4条回答
  •  我寻月下人不归
    2021-02-19 21:28

    modprobe is looks for dependencies while loading a module. Suppose, if I loaded a module, which has symbols defined in some other module (this module path is given inside the main module). So, modprobe loads the main module and the dependent module.

    But in case if you are using insmod to loading , it won't load the dependency, and hence it will give compilation errors like Unresolved symbols. In this case, we have to manually look for dependent module and need to load them in order to resolve the errors.

提交回复
热议问题