
Why Kernel Code Must Never Sleep in an Interrupt Handler
Sleeping means the scheduler switches tasks, and an interrupt handler has no task to switch away from. See the reasons, the error message and the fixes.
Everything you need to level up your coding skills.

Sleeping means the scheduler switches tasks, and an interrupt handler has no task to switch away from. See the reasons, the error message and the fixes.

Detect controllers, read buttons, sticks and triggers with the SDL 3.2 gamepad API in C, apply dead zones, handle hot-plugging and add rumble.

Build a Quartus Prime Lite 23.1 project for a Cyclone IV E board from the command line with a QSF file, an SDC clock constraint, quartus_sh and quartus_pgm.

Enable nested virtualization on a KVM host, pass the vmx or svm flag to a guest with -cpu host and start a second-level VM, with the checks that prove it works.

A use-after-free reads or writes memory after free released it. See how it happens in C and C++, how ASan reports it and patterns that stop it.

An ISA is the contract between software and a processor: instructions, registers, encodings. See one add function as x86-64, AArch64 and RISC-V code and bytes.

Learn what the GStreamer base, good, bad, ugly and libav plugin sets contain, how to install them on Linux, and how to map a missing element to its package.

Compare epoll level-triggered and edge-triggered modes with EPOLLET, see exactly when each reports readiness, and pick the right one for your server.

Name threads with pthread_setname_np so gdb, top -H and /proc show readable names. Covers the 15-character limit, ERANGE, prctl and C++ and Rust.

Learn the difference between = and := in GNU Make, when ?= and += fit, and how a recursive variable can silently run a shell command many times.

Run Valgrind Memcheck on your unit tests in CI with exit codes, suppressions and XML output so a new leak or invalid access fails the build before it merges.

Run EXEC CICS commands one at a time from a 3270 screen with CECI, read the response and EIBRESP values, check syntax with CECS and know the production limits.
We send one email when a new post is published. No spam.