mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
Semi automated conversion, in part because Pandoc is kind of buggy for adoc:
Some of the commands were along the lines:
for f in *.md; do pandoc --atx-headers --base-header-level=3 -o ${f%.md}.adoc --wrap=none $f; done
sed -Ei '/\[\[.*\]\]/d' *.adoc
while read -r f; do cat $f; echo; done <f >g
46 lines
995 B
Plaintext
46 lines
995 B
Plaintext
=== 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
|
|
|
|
Name of a predecessor set of tools.
|
|
|
|
==== modprobe
|
|
|
|
Load module under different name to avoid conflicts:
|
|
|
|
....
|
|
sudo modprobe vmhgfs -o vm_hgfs
|
|
....
|