
The Complete Guide to Linux Kernel Modules
A complete guide to Linux kernel modules: lifecycle, build, load, parameters, exported symbols, a working misc device, licensing, signing, DKMS and debugging.
Everything you need to level up your coding skills.

A complete guide to Linux kernel modules: lifecycle, build, load, parameters, exported symbols, a working misc device, licensing, signing, DKMS and debugging.

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

Write a VHDL counter with an entity, an architecture and a clocked process using numeric_std, then simulate it with GHDL and read the printed result.

cgroups v2 replaces v1's many hierarchies with one unified tree and different file names. What changed, how to detect which one you run, and how to migrate.

Record a program's system calls with strace, turn the list into a libseccomp allowlist, and test it with a logging default before you switch to kill.

Safe Rust has no undefined behavior, but unsafe blocks can. See what counts as UB in unsafe Rust and how the Miri interpreter reports each kind.

Resize video with the FFmpeg scale filter, keep the aspect ratio with -1 and -2, fit inside a box, and pick a scaling algorithm for sharp results.

Choose between TCP and UDP for systems code by weighing reliability, ordering, latency and framing, with a decision table and the cost of each option.

Bridge sync and async Rust with a Tokio Runtime and Handle::block_on, and avoid the nested-runtime panic from calling block_on inside a task.

Write a pkg-config .pc file so users get the right include paths and link flags for your library with one command, and install it where pkg-config will find it.

Use strace 6.8 on Linux to list every file a program opens, find its real config path from the ENOENT search order, and spot unexpected reads and writes.

Use the COBOL verbs MOVE, ADD, SUBTRACT, MULTIPLY and DIVIDE, with the TO, FROM, BY, GIVING and REMAINDER forms, and see how truncation and padding work.
We send one email when a new post is published. No spam.