
Top Halves and Bottom Halves: Why Interrupt Work Is Split
Linux splits interrupt work into a fast top half and a deferred bottom half. See what belongs in each, the four mechanisms, and how they trade latency and cost.
Everything you need to level up your coding skills.

Linux splits interrupt work into a fast top half and a deferred bottom half. See what belongs in each, the four mechanisms, and how they trade latency and cost.

Install the LunarG Vulkan SDK on Windows, Linux or macOS, set the environment, and check the loader, driver and validation layers with vulkaninfo and vkcube.

Write a Verilog testbench with initial blocks that drives inputs, prints with $display and $monitor, checks outputs with !== and ends with PASS or FAIL.

Trace what QEMU does with /dev/kvm, from open and KVM_CREATE_VM to the anonymous VM and vCPU file descriptors, using strace and /proc to see each step.

Turn on _FORTIFY_SOURCE=3 with -O2 on glibc 2.33 or later and see which libc calls get bounds checks, how level 3 differs from 2 and what it cannot catch.

Learn how binary numbers work: place values, counting, converting and why every integer in a program is a pattern of bits, with C code that prints them.

Learn how I, P and B frames and the GOP work in H.264 video, why keyframes enable seeking, and how to inspect and set them with ffprobe and x264 options.

XDP runs eBPF programs on packets inside the NIC driver, before the kernel builds an skb. See the hook point, the five verdicts and the three attach modes.

Guard a shared linked-list stack in C with pthread_mutex_lock and pthread_mutex_unlock on glibc 2.41, check return codes, and avoid leaks from missed unlocks.

Remove struct padding with __attribute__((packed)) to match a wire format, then see the unaligned-access cost, the pointer warning and the memcpy alternative.

Use GDB's break command with a function name, a line number, file:line, an address or an offset, then list, disable, delete and make breakpoints temporary.

A system abend is a three-digit hex code from z/OS, a user abend a four-digit decimal code from a program. Learn to tell them apart and where to look each up.
We send one email when a new post is published. No spam.