1

I'm getting conflicting information from the manuals, especially regarding kmod and modprobe. All of these programs come together in the same package, but are any f these backends or frontends? Does modprobe call insmod and rmmod? Does depmod call modinfo when building a list of dependencies? Is kmod used as a backend by insmod and rmmod?

From kmod.8.man:

 kmod is a multi-call binary which implements the programs used to
 control Linux Kernel modules. Most users will only run it using its
 other names.
1

Most of those are just symlinks to kmod. kmod then checks the name it's invoked with -- probably with argv[0] (never looked at the source to see for sure) to determine its behavior.

lrwxrwxrwx 1 root root 9 Aug 26  2012 depmod -> /bin/kmod
lrwxrwxrwx 1 root root 9 Aug 26  2012 insmod -> /bin/kmod
lrwxrwxrwx 1 root root 9 Aug 26  2012 lsmod -> /bin/kmod
lrwxrwxrwx 1 root root 9 Aug 26  2012 modinfo -> /bin/kmod
lrwxrwxrwx 1 root root 9 Aug 26  2012 modprobe -> /bin/kmod
lrwxrwxrwx 1 root root 9 Aug 26  2012 rmmod -> /bin/kmod

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.