
The Complete Guide to File Descriptors on Unix and Linux
Learn file descriptors on Unix and Linux from open and close to dup2, fork, pipes, limits, leaks, passing between processes and the kernel tables behind them.
Tag
362 posts

Learn file descriptors on Unix and Linux from open and close to dup2, fork, pipes, limits, leaks, passing between processes and the kernel tables behind them.

Learn ESP32 firmware with ESP-IDF v5.4: install the toolchain, build a project, use FreeRTOS tasks, GPIO, NVS, Wi-Fi, HTTP, OTA and debugging, with code.

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

Undefined behavior means the C standard sets no rules for a program, so anything can happen. Learn what it is, why C keeps it, and how to stay out of it.

A socket is a file descriptor for one end of a network conversation. Learn addresses, ports and the Berkeley sockets calls in C on Linux.

Why threaded C and C++ programs stop scaling, and how to find and fix serial sections, lock contention, false sharing, bandwidth limits and bad work splits.

Learn FreeRTOS queues, stream buffers and message buffers: when to use each, ISR sends, sizing, pointer ownership, patterns and the failures that lose data.

A guide to shared memory, semaphores and message queues on Linux: POSIX and System V APIs, layout, locking, robust mutexes, crash recovery, limits and cleanup.

Learn low-power firmware from the energy model to sleep modes, clocks, pins, wake-up sources, measurement and battery budgets, with a complete STM32 example.

Learn to write a CPU emulator in C from nothing: registers, memory, the fetch-decode-execute loop, flags, timing, devices, testing and a path to RISC-V.

A complete guide to IEEE 754 floating point: formats, encoding, rounding, error, exceptions, FMA and compiler flags, with C code and exact output.

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