Static vs. Dynamic Modules
LINUXLPIC1-101
2/19/20261 min read


The Linux kernel handles drivers in two ways:
Static (Built-in): The code is part of the vmlinuz file itself. It’s always there. lsmod cannot see these.
Dynamic (LKM): Loadable Kernel Modules. These are the .ko files that lsmod can see.
$ sudo modinfo virtio
[sudo] password for root:
name: virtio
filename: (builtin)
license: GPL
file: drivers/virtio/virtio
$ lsmod | grep -i virtio
$ (nothing is returned)
To know more about the virtio module, take a look at Virtualization.
Contact
hello@unixtips.eu
© 2025. All rights reserved.