
Write a Physical Memory Manager With a Bitmap Allocator
Write a bitmap physical memory manager in C: place the bitmap in usable RAM, mark reserved and kernel frames, allocate and free 4 KiB frames, and allocate runs.
Linux kernel modules and drivers, system calls, schedulers, bootloaders and UEFI, and writing a hobby operating system from the first instruction.

Write a bitmap physical memory manager in C: place the bitmap in usable RAM, mark reserved and kernel frames, allocate and free 4 KiB frames, and allocate runs.

Program the 8253 PIT for a periodic tick, then calibrate the local APIC timer against it and run a 1000 Hz tick, with a tick counter and a sleep function.

Write a PS/2 keyboard driver for a hobby kernel: the 8042 ports, scancode set 1, make and break codes, the 0xE0 prefix, shift and caps lock, and a ring buffer.

Remap the two 8259 PICs away from the CPU exception vectors, mask and unmask IRQ lines, send the end-of-interrupt and detect spurious IRQ 7 and IRQ 15.

Build your own x86 GDT in C: descriptor layout, kernel and user segments, a TSS slot, lgdt and segment register reloads, and the 64-bit changes.

Segmentation and paging both translate x86 addresses. See what each does, why 64-bit mode keeps only FS and GS bases, and which to use for protection.

Load a kernel module at every boot with /etc/modules-load.d and set its options in /etc/modprobe.d; the file formats, ordering, initramfs and how to verify.

Package an out-of-tree kernel module with DKMS: write dkms.conf, add, build and install, rebuild on kernel upgrades automatically and sign for Secure Boot.

Compare a module's vermagic string with uname -r using modinfo to see why insmod says Invalid module format, and what the version magic and CRC checks protect.

Pass parameters to a Linux kernel module with module_param: types, permissions, MODULE_PARM_DESC, insmod and modprobe.d usage, and /sys/module values.

insmod loads one .ko by path, and modprobe loads by name with dependencies from modules.dep and modprobe.d. See how each works, what fails and which to use.

Write, build and load your first Linux kernel module in C: the init and exit functions, MODULE_LICENSE, a Makefile and insmod, with the exact dmesg output.
We send one email when a new post is published. No spam.