
What an Inode Is and How ls -i and stat Reveal It
An inode stores a file's metadata but not its name. See inode numbers with ls -i, read every field with stat, and learn why df -i can fill up first.
Everything you need to level up your coding skills.

An inode stores a file's metadata but not its name. See inode numbers with ls -i, read every field with stat, and learn why df -i can fill up first.

Move sleeping work out of an interrupt handler with INIT_WORK, schedule_work and a worker function on Linux 6.12, including delayed work and safe teardown.

See how KVM reuses the Linux scheduler, memory manager, MMU notifiers, eventfds and cgroups instead of building its own, and where to read each in the source.

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.

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.

Register, use and release an interrupt handler with request_irq and free_irq in a Linux 6.12 platform driver, with flags, return codes and common errors.

Prepare a Linux machine for KVM and QEMU work as a normal user: packages, the kvm group, headers, tracing access and a smoke test, with no sudo for daily use.

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.

Read each column of /proc/interrupts, find which CPU serves a device, and pin an IRQ to chosen CPUs with smp_affinity_list on Linux 6.12.

CPUs split execution into user and kernel mode so the OS can protect itself. See how a Linux x86-64 system call crosses over and what a privileged fault does.

An interrupt makes the CPU pause its program, run a handler and resume. Learn what the CPU saves, how it finds the handler, and what Linux does next.

Write a 64-bit RISC-V kernel in C and assembly for QEMU virt: boot through OpenSBI, traps, timer, paging with Sv39, a page allocator, tasks and user mode.
We send one email when a new post is published. No spam.