What's the difference between insmod and modprobe?

前端 未结 4 1447
栀梦
栀梦 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:36

    insmod: Used to load a module
    modprobe: Much same way as insmod, but also loads any other modules that are required by the module that you want to load.
    Although you’ll still need insmod when loading your own modules from the current directory, because modprobe looks only in the standard installed module directories.
    Reference:https://lwn.net/Kernel/LDD3/

提交回复
热议问题