mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
adoc
This commit is contained in:
52
kmod.adoc
Normal file
52
kmod.adoc
Normal file
@@ -0,0 +1,52 @@
|
||||
[[kmod]]
|
||||
= kmod
|
||||
|
||||
Multi-call executable that implements: `lsmod`, `insmod`, `rmmod`, and
|
||||
other tools on desktop distros such as Ubuntu 16.04, where e.g.:
|
||||
|
||||
....
|
||||
ls -l /bin/lsmod
|
||||
....
|
||||
|
||||
gives:
|
||||
|
||||
....
|
||||
lrwxrwxrwx 1 root root 4 Jul 25 15:35 /bin/lsmod -> kmod
|
||||
....
|
||||
|
||||
and:
|
||||
|
||||
....
|
||||
dpkg -l | grep -Ei
|
||||
....
|
||||
|
||||
contains:
|
||||
|
||||
....
|
||||
ii kmod 22-1ubuntu5 amd64 tools for managing Linux kernel modules
|
||||
....
|
||||
|
||||
BusyBox also implements its own version of those executables. There are
|
||||
some differences.
|
||||
|
||||
Buildroot also has a kmod package, but we are not using it since
|
||||
BusyBox' version is good enough so far.
|
||||
|
||||
This page will only describe features that differ from kmod to the
|
||||
BusyBox implementation.
|
||||
|
||||
Source code: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
|
||||
|
||||
[[module-init-tools]]
|
||||
== module-init-tools
|
||||
|
||||
Name of a predecessor set of tools.
|
||||
|
||||
[[modprobe]]
|
||||
== modprobe
|
||||
|
||||
Load module under different name to avoid conflicts:
|
||||
|
||||
....
|
||||
sudo modprobe vmhgfs -o vm_hgfs
|
||||
....
|
||||
Reference in New Issue
Block a user