
Write a Minimal In-Memory Filesystem With libfs Helpers
Build a tiny kernel filesystem that exposes one read-only file, using simple_fill_super, get_tree_nodev and simple_read_from_buffer from libfs on Linux 6.12.
Tag
27 posts

Build a tiny kernel filesystem that exposes one read-only file, using simple_fill_super, get_tree_nodev and simple_read_from_buffer from libfs on Linux 6.12.

Register guest RAM, ROM and holes with KVM_SET_USER_MEMORY_REGION, covering slot rules, read-only slots, dirty logging and slot removal, with C code.

Build a small KVM hypervisor in C that loads a flat 16-bit guest binary, serves a serial port and a result port, counts exits and halts cleanly.

A map of the XNU kernel behind macOS: Mach tasks and ports, the BSD layer, IOKit, system call entry, virtual memory, security layers, extensions and boot.

A complete x86-64 kernel core: GDT, IDT, exceptions, PIC and APIC interrupts, timers, a frame allocator, four-level paging, page faults, a heap and PCI.

Ask the CUDA runtime for a block size that maximizes theoretical occupancy with cudaOccupancyMaxPotentialBlockSize, and learn why you must still time it.

Build with -g -G, set breakpoints inside a kernel, switch focus between blocks and threads, inspect variables and use conditional breakpoints with cuda-gdb.

Write Linux 6.18 drivers in Rust: toolchain, module anatomy, pinned initialization, device lifetimes, misc, platform, PCI and PHY drivers, testing and style.

Build a complete Linux 6.12 network driver for a ring-based PCIe NIC: rings, NAPI, DMA, statistics, ethtool, link state, offloads and recovery.

Learn IBM High Level Assembler on z/OS end to end: source format, registers, linkage, data, I/O, macros, DSECTs, dumps and modern instructions.

Build network protocol parsers and a small TCP/IP stack in C: framing, bounds-safe parsing, state machines, packet buffers, testing, fuzzing and limits.

Write a complete Linux 6.12 PCI driver: probe, BAR mapping, MSI interrupts, DMA with a restricted mask, a user-space interface, error recovery and testing.