← Kernel InternalsKERNEL INTERNALS 4.1
Modules & the Kernel Build
Not started yet — the monolithic-plus-modules model, writing and building a hello-world module, and the kernel-module Makefile shape from memory. 9 bytes.
What this topic will cover
- The monolithic-with-modules model vs. a microkernel, and a tour of the source tree (arch/, drivers/, kernel/, mm/, include/).
- A hello-world module — module_init/module_exit, the __init/__exit markers.
- The module Makefile — obj-m and make -C .../build M=$(PWD), written from memory.
- Module tooling — insmod vs. modprobe (and dependency resolution), rmmod, lsmod, modinfo.
- MODULE_LICENSE and kernel taint, module parameters, and printk log levels as the only debugger available at first.
- Building a kernel end to end — menuconfig, make, and what vmlinux/zImage/the modules directory each actually are.
Not yet catalogued — check back once this topic is underway.
Notes from readers
Comments — via GitHub