Sitemap
Every post, snippet and tool on the site, by title.
Posts (733)
- 15 Kinds of Undefined Behaviour in C With Examples
- 6502 Addressing Modes: Zero Page, Indexed and Indirect
- 6502 Registers and Flags: A, X, Y, SP and the Status Register
- AAC vs Opus for Streaming and Voice Applications
- Access SPI Devices From User Space With spidev
- Add a USB MIDI Interface to a Microcontroller With TinyUSB
- Add Dear ImGui to a GLFW and OpenGL Application
- Add Packages to a Yocto Image With IMAGE_INSTALL
- Advertise a BLE Beacon on nRF52 With the Zephyr Bluetooth Stack
- Align Data With __attribute__((aligned)) and alignas
- Allocate Aligned Memory with posix_memalign and aligned_alloc
- Allocate New Datasets in JCL With SPACE and DCB
- A Map of the Linux Kernel Source Tree and Its Top-Level Directories
- Amdahl's Law and Why Adding Threads Stops Helping
- Analyse a Single CUDA Kernel With Nsight Compute
- Annotate CUDA Code With NVTX Ranges for Profiling
- ARM Cortex-M Registers: R0-R12, SP, LR, PC and xPSR
- Assemble and Link a GNU as Program on Linux
- Assemble and Link a NASM Program With ld and gcc
- Asynchronous USB I/O With URBs and Completion Handlers
- Attach eBPF to Traffic Control with tc and cls_bpf
- Attach strace to an Already Running Process
- Avoid False Sharing in Rust With crossbeam's CachePadded
- AXI vs Wishbone vs APB for Custom FPGA Peripherals
- Base Registers and the USING Statement Explained
- Benchmark C Code Without a Framework Using clock_gettime
- Benchmark Rust Code Reliably With Criterion
- Binary, Hex and Bit Masks: The Math Every Emulator Author Needs
- Binary Numbers Explained for Programmers
- Bind Processes to NUMA Nodes With numactl --cpunodebind and --membind
- BIOS vs UEFI Booting for Hobby OS Developers
- Bits, Nibbles, Bytes and Words: The Units of Data
- Blink an LED on STM32 by Writing GPIO Registers Directly
- Blink an LED on STM32 With Rust and stm32f4xx-hal
- Blocking vs Non-Blocking Assignments in Verilog Explained
- Blocking vs Non-Blocking I/O Explained
- Boot Linux on RISC-V in QEMU With OpenSBI and U-Boot
- Build a Branch Table for Dispatching in HLASM
- Build a C++ Testbench for a Verilog Module With Verilator
- Build and Flash an iCE40 Design With Yosys, nextpnr and icepack
- Build and Inspect an ext4 Image With mkfs.ext4, dumpe2fs and debugfs
- Build and Install the Yocto Standard SDK With populate_sdk
- Build and Minimize a Fuzzing Corpus
- Build an epoll Event Loop in C Step by Step
- Build a Quartus Project for an Intel Cyclone Board
- Build a seccomp Allowlist by Recording a Program's Syscalls With strace
- Build a USB CDC Virtual COM Port on STM32 With TinyUSB
- Build a USB Gadget With configfs and libcomposite
- Build a USB HID Keyboard With TinyUSB on RP2040
- Build a Watchdog-Style Timeout by Restarting a Timer With xTimerReset
- Build Embedded Ada With Alire and the GNAT ARM Toolchain
- Build One Zephyr App for Several Boards With Board Overlays
- Build perf From Kernel Source to Match Your Running Kernel
- Build RTEMS With the RTEMS Source Builder and Waf
- Build Your First nRF Connect SDK Application With west
- Build Your First Pipeline With gst-launch-1.0
- Bulk Transfers in a USB Driver With usb_bulk_msg
- Calculate Dataset Space in Tracks and Cylinders From Record Counts
- Call Async Code From Synchronous Rust With a Tokio Runtime Handle and block_on
- Call POSIX APIs Safely with the nix Crate
- Cancel Tokio Tasks with select! and CancellationToken
- Capture Kernel Logs Over the Network With netconsole
- cgroups v1 vs v2: What Changed and How to Migrate
- Chain RP2040 DMA Channels for Continuous Transfers
- Change a Software Timer Period at Runtime With xTimerChangePeriod
- Check a Module's vermagic Against the Running Kernel With modinfo
- Check Resource Usage with getrusage
- Check Return Values of System Calls the Right Way
- Check Whether Your CPU Supports Virtualization With vmx, svm and kvm-ok
- CHIP-8 Quirks That Break Programs and How to Handle Them
- Choose and Install the Right GStreamer Plugin Packages: base, good, bad and ugly
- Choose MACHINE, DISTRO and Image Targets in Yocto
- Choose OpenMP Schedules: static, dynamic and guided
- chroot vs pivot_root: Why Containers Use pivot_root
- Clean Up Resources on Error Paths with goto in C
- COBOL Level Numbers 01, 05, 77 and 88 Explained
- COBOL PIC Clauses Explained: 9, X, A, S, V and Editing Symbols
- Codec vs Container: The Difference Explained Simply
- Code the DISP Parameter for New, Old, Shared and Mod Datasets
- Combine Results with the OpenMP reduction Clause
- Common errno Values and What They Mean
- Compare and Branch With CLC, CLI and BRC in HLASM
- Compare Floating-Point Numbers Safely With Epsilons and ULPs
- Compile and Decompile Device Trees With dtc
- Compile and Run OpenMP Programs with GCC and Clang
- Compile Object Files With Pattern Rules in Make
- Compile With -g and Start Your First GDB Session
- Configure ESP-IDF Projects With idf.py menuconfig and sdkconfig
- Configure ESP32 GPIO With gpio_config and Pin Interrupts
- Configure Pin Multiplexing With pinctrl in a Device Tree
- Connect ESP32 to Wi-Fi in Station Mode With esp_wifi
- Control GPIO Lines From Python With the gpiod Bindings
- Convert Any Video to MP4 With H.264 and AAC Using FFmpeg
- Convert Between Binary, Decimal and Hex by Hand
- Convert Between Floats and Q15 Fixed-Point Values
- Cooperative vs Preemptive Thread Priorities in Zephyr
- Copy .data and Zero .bss Correctly in Your Reset Handler
- Copy Memory to Memory With STM32 DMA
- Count Cycles, Instructions and Cache Misses With perf stat
- Count Packets per IP with an eBPF Hash Map
- Create a Child Process in C with fork
- Create a Custom BLE GATT Service on nRF52
- Create a Custom Yocto Image Recipe Based on core-image
- Create a Logical Device and Retrieve Queues in Vulkan
- Create and Join Threads with pthread_create
- Create a New PID Namespace with unshare and clone
- Create an OpenGL Window and Context With SDL3
- Create a Reusable ESP-IDF Component With idf_component.yml
- Create a Standalone Zephyr Application Outside the Main Tree
- Create a Static Library With ar and Link Against It
- Create a Vulkan Instance With Validation Layers Enabled
- Create One-Shot and Auto-Reload Timers With xTimerCreate
- Create Processes with CreateProcess
- Create Threads with CreateThread and _beginthreadex
- Create ThreadX Threads With tx_thread_create on STM32
- Create Zephyr Threads With K_THREAD_DEFINE
- Cross-Compile a C Program With the Yocto SDK Environment Script
- Cross-Compile an Autotools Project With --host and a Sysroot
- Cross-Compile Go for ARM Boards With GOARCH and GOARM
- Cross-Compile Zig for a Cortex-M Target With build.zig
- Debug a Running Process by Attaching With gdb -p
- Debug CUDA Kernels Step by Step With cuda-gdb
- Debug KVM Guests With kvm Tracepoints and perf kvm
- Debug Optimised Builds With -Og and -fvar-tracking
- Debug Your First Segfault With gdb and a Core Dump
- Decode a float Bit by Bit in C With memcpy
- Defer Work From an ISR With xTimerPendFunctionCallFromISR
- Defer Work to Process Context With Workqueues
- Define Clear Ownership Rules for Heap Memory in C Functions
- Define Data in NASM: db, dw, dd, dq, resb and times
- Define Programs and Transactions With CEDA
- Describe an I2C Sensor in a Device Tree Node
- Describe an SPI Device and Its Chip Select in a Device Tree
- Design a Stable C ABI for a Shared Library
- Detect Heap Bugs with AddressSanitizer
- Develop a PCI Driver Against QEMU's edu Device
- DMA in PCI Drivers: Coherent vs Streaming Mappings
- DriverKit and System Extensions vs Kernel Extensions
- Dump Waveforms From a Testbench With $dumpfile and $dumpvars
- Emit and Read LLVM IR With clang -emit-llvm -S
- Emulation vs Virtualization vs Containers Explained
- Enable I2C and SPI on a Raspberry Pi With dtparam
- Enable MSI and MSI-X Interrupts With pci_alloc_irq_vectors
- Enable _FORTIFY_SOURCE=3 and Understand What It Checks
- Encode H.264 and HEVC With VAAPI in FFmpeg on Linux
- Encode With Intel Quick Sync Video Using FFmpeg QSV
- Encode With NVENC in FFmpeg on NVIDIA GPUs
- Encode With VideoToolbox in FFmpeg on macOS
- Enforce a Code Style With clang-format
- Enter STM32 Stop Mode and Wake on an RTC Alarm
- Enter the STM32 System Bootloader and Flash Over UART
- ESP32 vs ESP32-S3 vs ESP32-C3 vs ESP32-C6 for New Designs
- Exit Codes and Conventions for Unix Tools
- Explore Namespaces From the Shell With unshare and nsenter
- Extract Audio From a Video File With FFmpeg
- False Sharing Explained With a Counter Benchmark
- Fetch, Decode, Execute: How an Emulator's CPU Loop Works
- Fetch Debug Symbols Automatically in GDB With debuginfod
- File Descriptors vs Open File Descriptions vs Inodes
- Filter strace Output to the Calls You Care About With -e trace=
- Find Elements and Their Properties With gst-inspect-1.0
- Find GPIO Chips and Lines With gpiodetect and gpioinfo
- Find Hot Functions With perf record and perf report
- Find Hot Instructions With perf annotate
- Find Memory Errors in CUDA With compute-sanitizer
- Find Memory Leaks With Valgrind Memcheck
- Find Which Files and Configs a Program Opens With strace
- Find Which Kernel Driver Controls a PCI Device With lspci -k
- Fix 'invalid access to packet' Verifier Errors in XDP
- Fix 'Too many open files' (EMFILE) by Raising RLIMIT_NOFILE
- Fix an S0C4 Protection Exception in a z/OS Program
- Fix an S0C7 Data Exception in a COBOL Batch Job
- Fix False Sharing With alignas(64) and Padding
- Flash a Blinky to a Raspberry Pi Pico With TinyGo
- Flash Rust Firmware With probe-rs run and Print Logs With defmt
- float vs double: Precision, Range and Performance
- Follow Child Processes and Threads With strace -f
- Follow Standard z/OS Linkage Conventions With Save Areas
- Fork and Exec Safely in Rust with CommandExt::pre_exec
- FreeRTOS vs Zephyr vs NuttX vs ThreadX: Choosing an RTOS
- FUSE vs Kernel Filesystem: When to Write Each
- Fuzz a Binary File Parser With AFL++
- Fuzz a Binary Format Decoder With Go Native Fuzzing
- Fuzz Rust Parsers and Unsafe Code With cargo-fuzz
- GDB Cheat Sheet: The Commands You Use Every Day
- GDB to LLDB Command Map for Switching Debuggers
- Generate a Bitstream for an Artix-7 Board in Vivado
- Generate Partitioned SD Card Images With wic
- Get GCC and Clang to Auto-Vectorise Your Loops
- Give User Space Direct Device Access With VFIO
- GPIO Sysfs vs the libgpiod Character Device Interface
- Grant a Binary One Capability With setcap Instead of setuid
- GStreamer Elements, Pads, Caps and Bins Explained
- H.264 Profiles and Levels Explained for Compatibility
- Handle GPIO Interrupts in TinyGo With SetInterrupt
- Handle Keyboard Input With a PS/2 Driver
- Handle Missing, Locked and Read-Only Files Gracefully With Rust std::fs
- Handle Multiple Clients with select
- Handle PCIe Hotplug and Surprise Removal in Drivers
- Handles, Kernel Objects and the Win32 API Explained
- Handle Traps in RISC-V Machine Mode With mtvec, mepc and mcause
- Handle USB Disconnect Safely While I/O Is in Flight
- Handle Window Resizes and Framebuffer Size Changes in GLFW
- Harden a CMake Project With Security Compiler Flags
- Hard vs Soft vs Firm Real-Time Requirements Explained
- Hardware Decoding vs Hardware Encoding in FFmpeg Explained
- Heap Buffer Overflows: Causes, Detection and Prevention
- Hexadecimal Explained: Why Programmers Use Base 16
- How an RTOS Context Switch Works on Cortex-M With PendSV
- How argc and argv Reach main in a C Program
- How AXI4 Channels, Handshakes and Bursts Work
- How a Zephyr Application Is Structured: CMakeLists, prj.conf and Boards
- How Clang, LLVM IR and the LLVM Backend Fit Together
- How CPU Privilege Rings and Exception Levels Protect the Kernel
- How DRM/KMS Drivers Are Structured: CRTCs, Planes, Encoders and Connectors
- How FFmpeg Inputs, Streams, Codecs and Outputs Fit Together
- How Floating-Point Numbers Are Stored: Sign, Exponent and Mantissa
- How glibc Wrappers Turn Function Calls Into System Calls
- How H.264 Encodes Video: Macroblocks, Prediction and Entropy Coding
- How Hardware Virtualization Works: Intel VT-x and AMD-V
- How HDL Differs From Software: Concurrency, Wires and Registers
- How I2C Addressing, ACK and Clock Stretching Work
- How KVM Integrates With the Linux Kernel
- How PCI Express Works: Config Space, BARs and Link Training
- How Rust's std Wraps libc and System Calls
- How Stack Canaries Catch Buffer Overflows at Runtime
- How the Cortex-M Vector Table Works and Where It Lives in Flash
- How the FreeRTOS Timer Service Task Runs Timer Callbacks
- How the IOMMU Isolates Device DMA From Kernel Memory
- How the Kernel Returns Errors and How errno Gets Set
- How the Linux VFS Works: Superblocks, Inodes, Dentries and Files
- How USB Works: Devices, Configurations, Interfaces and Endpoints
- I-Frames, P-Frames, B-Frames and GOP Structure Explained
- I2C and SPI Explained for Linux Driver Developers
- Identify a Binary's Architecture and ABI With file and readelf
- Implement a DNS Query Client Over UDP
- Implement a Fixed-Point FIR Filter in C
- Implement a Fixed Timestep Game Loop With GLFW
- Implement an SPI Slave Interface in Verilog for an FPGA
- Implement a UART Transmitter and Receiver in Verilog
- Initialise Structs, Arrays and Heap Buffers Safely in C
- Initialise Structs and Arrays Safely With Designated Initialisers in C
- Inside the 512-Byte MBR: Boot Code, Partition Table and Signature
- insmod vs modprobe: How Kernel Modules Get Loaded
- Inspect a Process's cgroups With /proc/PID/cgroup and systemd-cgls
- Inspect Kernel State on macOS With sysctl and ioreg
- Inspect NUMA Topology With numactl --hardware and lstopo
- Inspect Packed Decimal Fields in a Dataset With ISPF HEX ON
- Inspect Variables With frame variable and expression in LLDB
- Install Clang and Use It as a Drop-In GCC Replacement
- Install ESP-IDF and Build Your First Project With idf.py
- Install FFmpeg and Check Which Encoders Your Build Supports
- Install perf and Profile Your First Program
- Install the Vulkan SDK and Verify It With vulkaninfo
- Install Zephyr and Build Blinky With west build
- Intel vs AT&T Syntax: How to Read Both Without Getting Lost
- IPC Mechanisms Compared: Pipes, Sockets, Shared Memory and Queues
- Isolate the Filesystem with Mount Namespaces and pivot_root
- JCL Syntax Rules: Columns, Continuations and Comments
- JOB, EXEC and DD Statements Explained With a Working Example
- Jump From a Custom Bootloader to an Application on Cortex-M
- Kernel Oops vs Panic vs BUG vs WARN: What Each Means
- Kilobytes vs Kibibytes: KB, KiB, MB and MiB Explained
- Learn Assembly the Retro Way: The Complete 6502 and Z80 Guide
- Level-Triggered vs Edge-Triggered epoll
- libFuzzer vs AFL++ vs Honggfuzz: Choosing a Fuzzer
- libusb vs a Kernel USB Driver: Where Should Your Code Live
- Limit a Process's Resources with setrlimit
- Limit Memory and CPU With cgroups v2
- Lint Verilog With verilator --lint-only and Keep the Codebase Warning-Clean
- Linux Capabilities Explained: Splitting Root Into Pieces
- Linux Namespaces Explained: The Eight Types and What They Isolate
- Linux Network Stack Path From NIC to Socket
- List and Remove Stale IPC Objects with ipcs and ipcrm
- List a Process's Open Files with /proc/self/fd and lsof
- List Network Interfaces and Their Drivers With ip and ethtool -i
- Load and Store on ARM: LDR, STR, LDM and STM
- Load Device Firmware From a Driver With request_firmware
- Load Modules at Boot With modules-load.d and Set Options in modprobe.d
- Lock Multiple Mutexes Safely with std::scoped_lock
- Mach Ports and Messages Explained for macOS Developers
- Mach Traps vs BSD System Calls on macOS
- Magic SysRq Keys Every Kernel Developer Should Know
- Make a Raspberry Pi Pico Act as a USB Serial Port With TinyUSB
- Make a Socket Non-Blocking with fcntl and O_NONBLOCK
- Manage Zephyr Dependencies With a West Manifest and Workspace
- Map Guest Memory With KVM_SET_USER_MEMORY_REGION
- Map PCI BARs Into Kernel Space With pci_iomap
- Mark Assembly Objects Non-Executable-Stack With .note.GNU-stack and -z noexecstack
- Mark Functions That Never Return With the noreturn Attribute
- Measure Memory Bandwidth With the STREAM Benchmark
- Memory Latency vs Memory Bandwidth Explained
- Migrate a Driver From embedded-hal 0.2 to 1.0
- Modify a Recipe's Source Tree With devtool modify
- Monolithic vs Microkernel vs Hybrid Kernel Designs Compared
- Move Data Between Registers and Memory With MOV, MOVZX and MOVSX
- MP4 vs MKV vs WebM: Choosing a Container
- Multiply and Divide Fixed-Point Numbers Without Overflow
- NaN, Infinity and Negative Zero Explained
- NASM vs GAS vs MASM vs FASM: Which x86 Assembler to Use
- Navigate C and C++ Code in Any Editor With clangd
- Navigate Linux Kernel Source With Elixir and cscope
- Network Byte Order and Endianness: htons, ntohl and Friends
- nRF52832 vs nRF52840 vs nRF5340 for New Bluetooth Designs
- Octal Explained and Where You Still See It in Unix Permissions
- Off-by-One Errors in C String Handling
- Offload Work From ISRs With the Zephyr System Workqueue
- Open a Window and Handle Keyboard Input With GLFW
- Organise Assembly Into .text, .data, .bss and .rodata Sections
- Out-of-Bounds Array Access: Why It Sometimes Seems to Work
- Pack Structs With __attribute__((packed)) and Know the Costs
- PACs vs HALs vs BSPs in the Embedded Rust Ecosystem
- Parallelize a Loop with
- Paravirtualization vs Full Virtualization
- Parse Binary Protocols Safely Without Undefined Behaviour
- Parse Command-Line Options with getopt
- Parse Ethernet, IP and TCP Headers in C
- Parse Long Options with getopt_long
- Pass Arguments to and Return Values from pthreads
- Pass Large Buffers Through a Queue of Pointers Safely
- Pass Messages Between Threads With Zephyr k_msgq
- Pass Parameters to a Kernel Module With module_param
- Peek at Queue Data Without Removing It Using xQueuePeek
- Perform OTA Updates on ESP32 With esp_https_ota
- Pick a Physical Device and Queue Families in Vulkan
- Pick the Right Assignment in Make: =, :=, ?= and +=
- Place Code and Data in Custom Sections With the section Attribute
- Play Any Media File With playbin and uridecodebin
- Port an SSE Intrinsics Loop to AVX2
- Preemptive vs Cooperative Scheduling in Embedded Systems
- Prepare a Linux Box for Profiling With perf_event_paranoid, kptr_restrict and CAP_PERFMON
- Prevent FD Leaks into Child Processes with O_CLOEXEC
- Print All Environment Variables Using environ
- Print Fixed-Point Values Without printf Float Support
- printk Log Levels and pr_* Helpers Explained
- Print Readable Errors with strerror and perror
- Print Strings in Real Mode With BIOS int 0x10
- Print Variables, Arrays and Structs in GDB
- Probe for Optional Syscalls at Runtime and Fall Back Gracefully
- Processes vs Threads: What Is the Difference
- Process Lines Efficiently with getline
- Profile a CUDA Application Timeline With Nsight Systems
- Program an ECP5 Board With Yosys, nextpnr-ecp5 and openFPGALoader
- Program an nRF52840 Dongle Without a Debug Probe
- Program the PIT and APIC Timer for Timekeeping
- Protect Shared Data with pthread_mutex_lock
- Provide Overridable Default Functions With Weak Symbols
- Pseudo-Conversational Programming in CICS Explained
- Push-Pull vs Open-Drain Outputs Explained for Firmware Developers
- Put a Cortex-M to Sleep With WFI Between Interrupts
- Put an AVR to Sleep With sleep_mode and Wake on Pin Change
- Q Format Explained: Q15, Q31 and Q16.16 Numbers
- Read /proc/interrupts and Set IRQ Affinity
- Read a Button on Raspberry Pi Pico With the Pico SDK
- Read and Filter Kernel Logs With dmesg and journalctl -k
- Read and Write Files in Rust with std::fs and BufReader
- Read and Write Files with CreateFile and ReadFile
- Read and Write I2C Registers With HAL_I2C_Mem_Read and HAL_I2C_Mem_Write
- Read and Write I2C Registers With i2cget, i2cset and i2ctransfer
- Read an I2C Sensor on Raspberry Pi Pico With i2c_read_blocking
- Read Cortex-M Disassembly With arm-none-eabi-objdump
- Read Environment Variables in C with getenv
- Read from stdin or a File Argument Like cat
- Read Gamepads With the SDL Gamepad API
- Read I2C Sensors With TinyGo machine.I2C and the drivers Package
- Read macOS Kernel Logs With log show and log stream
- Read Memcheck Leak Reports: Definitely, Indirectly and Possibly Lost
- Read PCI Configuration Space With lspci and setpci
- Read SPI and I2C Waveforms Bit by Bit on a Logic Analyser
- Read the Auxiliary Vector with getauxval
- Read Your First Kernel Oops Message Line by Line
- Read Zephyr Console Output Over UART and RTT
- Reap Zombie Children Automatically with SIGCHLD and SA_NOCLDWAIT
- Record and Submit Your First Vulkan Command Buffer
- Recover a Stuck I2C Bus by Clocking Out Nine SCL Pulses at Startup
- Recover From PCIe Link Faults in a Driver With err_handler Callbacks
- Redirect stdout to a File with dup2
- Reduce RP2040 Power With Dormant Mode and Clock Gating
- Refresh a Changed Program With CEMT SET PROGRAM NEWCOPY
- Register a Filesystem Type With register_filesystem
- Register an Interrupt Handler With request_irq
- Register Exit Handlers with atexit and on_exit
- Registers, ALU and Control Unit: The Parts of a CPU
- Remap and Program the 8259 PIC in Your Hobby Kernel
- Replace strcpy and sprintf With Safer Alternatives
- Reserve 1 GB Huge Pages at Boot With hugepagesz and hugepages
- Resize Videos With the FFmpeg Scale Filter
- Resolve Hostnames in C with getaddrinfo
- Restructure Loops So Compilers Can Vectorise Reductions, Gathers and Early Exits
- RISC-V Control and Status Registers Every Kernel Author Uses
- RISC-V Privilege Modes: M, S and U Explained
- Route DMA Requests With DMAMUX on STM32G4 and H7
- Run Another Program from C with execvp
- Run Blocking Code in Tokio with spawn_blocking
- Run KVM Inside a VM With Nested Virtualization
- Run LLVM Optimisation Passes by Hand With opt
- Run Periodic Code With Zephyr k_timer
- Run Valgrind Memcheck in CI as a Merge Gate
- Run Your First Yocto Image in QEMU With runqemu
- Rust for Linux Explained: Why the Kernel Accepted a Second Language
- Rust in the Kernel vs Rust in User Space: What Changes
- Rust vs C Kernel Modules: Safety, Ergonomics and Trade-offs
- Scan an I2C Bus for Devices With i2cdetect
- Scan for I2C Devices With the Arduino Wire Library
- Schedule Delayed Work With k_work_reschedule
- Scope Variables in OpenMP With private, firstprivate and default(none)
- seccomp-bpf Explained: Filtering System Calls
- See Which Driver Is Bound to a USB Device With lsusb -t
- Segmentation vs Paging Explained for OS Developers
- Send Data Between Tasks With xQueueSend and xQueueReceive
- Send Messages Between Processes with POSIX mq_send and mq_receive
- Send Output to the Spool With SYSOUT and MSGCLASS
- Send Queue Messages From an ISR With xQueueSendFromISR
- Send USB Control Transfers With usb_control_msg
- Serve a Web Page From ESP32 With esp_http_server
- Set, List and Delete Breakpoints in LLDB
- Set and Unset Environment Variables with setenv and unsetenv
- Set Breakpoints by Function, File and Line in GDB
- Set Process Priority with nice and setpriority
- Set Thread Names for Debugging with pthread_setname_np
- Set Up a Global Descriptor Table (GDT) in Your Kernel
- Set Up a Linux Workstation for KVM Development Without Running as Root
- Set Up a Rust for Linux Development Environment
- Set Up a Stack and Call C From Your Bootloader
- Set Up a Yocto Build Host and Build core-image-minimal
- Share Data Between Threads in Rust with Arc and Mutex
- Shared Library sonames, Real Names and Linker Names
- Share DL_DIR and SSTATE_DIR Across Multiple Yocto Builds
- Share Memory Between Processes with shm_open and mmap
- Ship a Library With a pkg-config .pc File
- Ship a Relocatable Linux App Bundle That Carries Its Own Libraries
- Ship Out-of-Tree Kernel Modules With DKMS
- Silence Known Issues With Valgrind Suppression Files
- SIMD for Beginners: Vectors, Lanes and Intrinsics
- Simplify I2C and SPI Register Access With regmap
- Simulate a Verilog Module With Icarus Verilog and View It in GTKWave
- sk_buff Explained: How Packets Travel Through the Kernel
- Sleep, Stop and Standby Modes Explained for Cortex-M
- Software x264 vs Hardware Encoders: Quality per Bitrate Compared
- Spawn OS Threads in Rust with std::thread::spawn
- Spinlocks vs Mutexes: When Spinning Wins
- Split Flash Into Bootloader and Application With Two Linker Scripts
- SR-IOV Explained: Virtual Functions in PCI Drivers
- Stack Buffer Overflows Explained and How to Prevent Them
- Stack vs Heap Memory in C Explained
- Start a DMA Transfer on Raspberry Pi Pico With dma_channel_configure
- Start Debugging a C Program With LLDB
- Start Threads in C++ with std::thread and std::jthread
- Step Through Code With next, step, finish and until in GDB
- Stream UART Bytes to a Task With FreeRTOS Stream Buffers
- Superloop vs RTOS: When Bare-Metal Firmware Stops Scaling
- Synchronize Processes with Named POSIX Semaphores
- Syscall Calling Conventions on x86-64, ARM64 and RISC-V
- System Abends vs User Abends on z/OS Explained
- Talk to I2C Devices From User Space With i2c-dev and i2c-tools
- Targets, Prerequisites and Recipes in Make Explained
- TCP vs UDP Choosing a Transport for Systems Code
- Test CICS Commands Interactively With CECI
- Test HDL Designs in Python With cocotb
- Test Rust Kernel Code With KUnit and Rust Doctests
- Test Your Boot Sector in QEMU With qemu-system-x86_64
- The AAPCS Calling Convention on 32-Bit ARM
- The Complete Guide to ARM Cortex-M Assembly (Thumb-2)
- The Complete Guide to Async Runtimes: Tokio, io_uring and Event Loops
- The Complete Guide to Benchmarking Native Code Correctly
- The Complete Guide to Bits, Bytes and Number Systems for Programmers
- The Complete Guide to Bootloaders and OTA Updates for MCUs
- The Complete Guide to Building Command-Line Tools in C
- The Complete Guide to CICS Application Programming in COBOL
- The Complete Guide to Clang and LLVM for C and C++
- The Complete Guide to COBOL Programming on z/OS
- The Complete Guide to Compiler and Linker Hardening Flags
- The Complete Guide to Cortex-M Startup Code and Linker Scripts
- The Complete Guide to Cross-Compiling Userland for Embedded Linux
- The Complete Guide to CUDA Performance Optimisation
- The Complete Guide to Debugging C and C++ With GDB
- The Complete Guide to Debugging the Linux Kernel
- The Complete Guide to Debugging With LLDB
- The Complete Guide to DMA on Microcontrollers
- The Complete Guide to Dynamic Memory Allocation in C
- The Complete Guide to eBPF for Network Programmers
- The Complete Guide to Eclipse ThreadX and RTEMS
- The Complete Guide to Embedded Rust on Microcontrollers
- The Complete Guide to Error Handling in Systems Code
- The Complete Guide to ESP32 Development With ESP-IDF
- The Complete Guide to File Descriptors on Unix and Linux
- The Complete Guide to Fixed-Point Arithmetic in Firmware
- The Complete Guide to FreeRTOS Queues, Stream Buffers and Message Buffers
- The Complete Guide to FreeRTOS Software Timers and Tickless Idle
- The Complete Guide to Fuzzing C and C++ Code
- The Complete Guide to GCC Attributes and Builtins
- The Complete Guide to Getting Started With Zephyr RTOS
- The Complete Guide to GNU Make for C Projects
- The Complete Guide to GPIO, I2C and SPI From Linux Userspace
- The Complete Guide to GPIO on Microcontrollers
- The Complete Guide to GStreamer Pipelines and the C API
- The Complete Guide to Hardware Accelerated Encoding in FFmpeg
- The Complete Guide to HDL Simulation With Icarus, Verilator and GTKWave
- The Complete Guide to How Computers Work for Systems Programmers
- The Complete Guide to I/O Multiplexing: select, poll, epoll and kqueue
- The Complete Guide to I2C and SPI Drivers on Linux
- The Complete Guide to I2C on Microcontrollers
- The Complete Guide to IBM High Level Assembler on z/OS
- The Complete Guide to IEEE 754 Floating Point for Systems Programmers
- The Complete Guide to Interrupt Handling in Linux Drivers
- The Complete Guide to Interrupts, Memory and Paging for OS Developers
- The Complete Guide to JCL for z/OS Batch Jobs
- The Complete Guide to Linux Containers From Scratch
- The Complete Guide to Linux Device Trees
- The Complete Guide to Linux Kernel Development for Beginners
- The Complete Guide to Linux Kernel Modules
- The Complete Guide to Linux Namespaces and cgroups for Programmers
- The Complete Guide to Linux Network Device Drivers
- The Complete Guide to Linux PCI Device Drivers
- The Complete Guide to Linux System Calls
- The Complete Guide to Low-Power Firmware on Microcontrollers
- The Complete Guide to macOS Kernel Internals
- The Complete Guide to Memory Bandwidth, NUMA and Huge Pages
- The Complete Guide to Memory Safety in C and C++
- The Complete Guide to Multithreaded Performance: Contention, Sharing and Scaling
- The Complete Guide to Mutexes, Condition Variables and Locks
- The Complete Guide to NASM, GAS and x86 Assembler Syntax
- The Complete Guide to nRF52 and nRF53 Firmware Development
- The Complete Guide to On-Chip Buses and Signal-Level Protocols
- The Complete Guide to Open-Source FPGA Toolchains
- The Complete Guide to OpenCL Programming in C
- The Complete Guide to Parallel Programming with OpenMP
- The Complete Guide to Profiling on Linux With perf
- The Complete Guide to Program Startup: argv, envp and main
- The Complete Guide to Real-Time Operating Systems for Microcontrollers
- The Complete Guide to Rust for Linux Driver Development
- The Complete Guide to Sandboxing Linux Processes
- The Complete Guide to Shared Memory, Semaphores and Message Queues
- The Complete Guide to SIMD Programming With Intrinsics
- The Complete Guide to Socket Programming in C
- The Complete Guide to Static and Shared Libraries in C
- The Complete Guide to Systems Programming in Rust on Linux
- The Complete Guide to the FFmpeg Command Line
- The Complete Guide to the Linux Device Model and Driver Subsystems
- The Complete Guide to the Linux KVM API
- The Complete Guide to the Yocto Project for Embedded Linux
- The Complete Guide to Threads in C, C++ and Rust
- The Complete Guide to TinyGo, Zig and Ada on Microcontrollers
- The Complete Guide to Tracing Programs With strace and ltrace
- The Complete Guide to Undefined Behaviour in C
- The Complete Guide to Unix Processes: fork, exec, wait and Exit
- The Complete Guide to USB Device Firmware on Microcontrollers
- The Complete Guide to Valgrind for C and C++
- The Complete Guide to Verilog for Firmware Engineers
- The Complete Guide to Video and Audio Codecs and Containers
- The Complete Guide to Virtualization for Systems Programmers
- The Complete Guide to Vulkan for Graphics Programmers
- The Complete Guide to Win32 Systems Programming in C
- The Complete Guide to Windowing and Input With GLFW and SDL
- The Complete Guide to Writing a Bootloader in Assembly
- The Complete Guide to Writing a Linux Filesystem Module
- The Complete Guide to Writing an Emulator
- The Complete Guide to Writing a RISC-V Kernel
- The Complete Guide to Writing Network Protocol Parsers and Stacks
- The Complete Guide to x86-64 Assembly for Systems Programmers
- The Complete Guide to Yocto Images, SDKs and devtool
- The Complete Guide to z/OS Abend Codes and How to Fix Them
- The Complete Guide to Zephyr Kernel Threads and Synchronisation
- The Four COBOL Divisions Explained With a Working Program
- The Memory Hierarchy: Registers, Cache, RAM and Storage
- Thumb vs Thumb-2 vs A32: ARM Instruction Sets Explained
- Time Command-Line Programs With hyperfine
- TinyGo -gc=conservative vs -gc=leaking vs -gc=none for Firmware
- Toggle and Read GPIO Lines With gpioset and gpioget
- Toggle AVR Pins With the DDRx, PORTx and PINx Registers
- Top Halves and Bottom Halves: Why Interrupt Work Is Split
- Trace Every System Call a Program Makes With strace
- Trace Shared Library Calls With ltrace
- Track Uninitialised Values to Their Source With --track-origins
- Transcode a File to MP4 With a GStreamer Pipeline
- Trim a Video Accurately With FFmpeg -ss, -to and -t
- Tune Block Size With cudaOccupancyMaxPotentialBlockSize
- Turn On Compiler Warnings That Catch Security Bugs
- Type 1 vs Type 2 Hypervisors: How They Differ
- Undefined Behaviour in Unsafe Rust and How Miri Detects It
- Understanding compatible Strings and How Drivers Match Them
- Understanding local.conf and bblayers.conf in a Yocto Build
- Understanding RFLAGS: Carry, Zero, Sign and Overflow Flags
- Unspecified vs Implementation-Defined vs Undefined Behaviour
- Upload Firmware Without a Programmer Using an AVR Serial Bootloader
- USB Descriptors, Endpoints and Enumeration Explained
- Use-After-Free Bugs Explained With Patterns That Prevent Them
- Use .PHONY Targets Correctly in Makefiles
- Use a PWM Channel From a Consumer Driver
- Use Circular DMA With Half-Transfer Interrupts for Streaming
- Use CMSIS-DSP Q15 and Q31 Functions for Filtering
- Use Conditional Breakpoints and Ignore Counts in GDB
- Use ESP32 Deep Sleep With Timer and GPIO Wakeup
- Use ESP32-S3 Native USB as a CDC Device With TinyUSB
- Use GPIO Descriptors in Drivers With gpiod_get
- Use hyperfine Warmups, Prepare Commands and Parameter Scans
- Use IMAGE_FEATURES and EXTRA_IMAGE_FEATURES Correctly
- Use LLDB's Built-In Curses Interface With gui
- Use malloc, calloc, realloc and free Correctly
- Use MOVE, ADD, SUBTRACT, MULTIPLY and DIVIDE in COBOL
- Use Named Pipes on Windows with CreateNamedPipe
- Use nrfx Drivers Directly Without Zephyr Abstractions
- Use OpenMP Tasks for Recursive Parallelism
- Use OpenSBI and SBI Calls From a RISC-V Kernel
- Use OwnedFd and BorrowedFd for File Descriptors in Rust
- Use poll Instead of select for Many Descriptors
- User Mode vs Kernel Mode and Why System Calls Exist
- Use RP2040 GPIO Interrupts With gpio_set_irq_enabled_with_callback
- Users, Groups and setuid Explained for Systems Programmers
- User Space vs Kernel Space Explained for Systems Programmers
- Use Standard Attributes Like [[nodiscard]] and [[maybe_unused]]
- Use std::hardware_destructive_interference_size in C++
- Use std::mutex and std::lock_guard in C++
- Use STM, LM, LA, L and ST to Move Data Between Registers and Storage
- Use strerror_r Correctly: XSI vs GNU Versions
- Use SystemVerilog always_ff, always_comb and logic Types
- Use the Automatic Variables $@, $< and $^ in Makefiles
- Use the FreeRTOS Idle Hook to Run Background Work
- Use the New ESP-IDF I2C Master Driver With i2c_master_bus_add_device
- Use the Yocto SDK's CMake Toolchain File for Target Builds
- Use ThreadX Byte and Block Memory Pools
- Use ThreadX Queues, Semaphores and Event Flags
- Use Tokio Channels: mpsc, oneshot, broadcast and watch
- Use Unnamed Semaphores in Shared Memory with sem_init
- Verify Hardening in an ELF With readelf
- Version a Shared Library With -Wl,-soname
- Wait for Child Processes with waitpid and Decode the Exit Status
- Wait for Conditions with pthread_cond_wait
- Wait on Objects with WaitForSingleObject and WaitForMultipleObjects
- Watch Memory for Changes With LLDB Watchpoints
- What /dev/kvm Is and What Happens When QEMU Opens It
- What a Bootloader Does and How It Hands Control to the Application
- What a Clock Cycle Is and What Clock Speed Measures
- What a Device Driver Is and How Drivers Talk to Hardware
- What a Device Tree Is and Why ARM Boards Need One
- What a Kernel Does: Processes, Memory, Devices and System Calls
- What an Inode Is and How ls -i and stat Reveal It
- What an Instruction Set Architecture (ISA) Is
- What Assembly Language Is and Why Systems Programmers Still Read It
- What a Sysroot Is and Why Cross-Compiling Needs One
- What CICS Is: Transactions, Tasks and Programs Explained
- What DMA Does and Why It Frees the CPU
- What Eclipse ThreadX Is and How It Became Open Source
- What Happens Between Reset and main on a Cortex-M Microcontroller
- What Is a File Descriptor? stdin, stdout, stderr and the FD Table
- What Is an Interrupt and How CPUs Handle Them
- What Is a Process? PIDs, Address Spaces and the Process Table
- What Is a Race Condition and How Mutexes Prevent It
- What Is a Socket? Addresses, Ports and the Berkeley Sockets API
- What Is Asynchronous I/O and How Does an Async Runtime Work
- What Is a System Call and How Does It Reach the Kernel
- What Is eBPF? Programs, Maps and the Verifier
- What Is errno and How Does It Work in C
- What Is Fuzzing and Why Coverage Guidance Works
- What Is XDP and Where It Runs in the Network Stack
- What Linux Namespaces Are and Why Containers Use Them
- What Makes an Operating System Real-Time
- What Makes Vulkan Different From OpenGL for Beginners
- What no_std Means and What You Lose Without the Standard Library
- What NUMA Is and Why Remote Memory Is Slower
- What Poky, OpenEmbedded-Core and BitBake Actually Are
- What Synthesis, Place and Route and Bitstreams Actually Are
- What Undefined Behaviour Is and Why C Has It
- Where Linux Looks for Device Firmware: /lib/firmware, initramfs and Built-In Blobs
- Why 0.1 + 0.2 Does Not Equal 0.3 in Floating Point
- Why 6502 Assembly Still Teaches Modern CPU Concepts
- Why Kernel Code Must Never Sleep in an Interrupt Handler
- Why Naive Timing Loops Lie: Common Benchmarking Mistakes
- Why RTOS Queues Copy Data Instead of Passing Pointers
- Why the sysfs GPIO Interface Is Deprecated
- Word Size: What 32-Bit and 64-Bit Really Mean
- Write, Compile and Run Your First COBOL Program on z/OS
- Write a 6502 CPU Emulator Core in C
- Write a 16550 UART Driver for QEMU's RISC-V virt Machine
- Write a Bare-Metal RISC-V Kernel That Runs on QEMU virt
- Write a Boot Sector That Prints Hello in 16-Bit Real Mode
- Write a CHIP-8 Emulator in C From Scratch
- Write a CHIP-8 Emulator in Rust From Scratch
- Write a Finite State Machine in Verilog the Synthesisable Way
- Write a GNU ld Linker Script for an STM32 From Scratch
- Write a GPIO Controller Driver With struct gpio_chip
- Write a Linux LED Class Driver With Brightness Control
- Write a Linux USB Driver With usb_driver and an id_table
- Write a Minimal Bare-Metal Blinky for STM32 Without a HAL
- Write a Minimal Hypervisor With the KVM API in C
- Write a Minimal In-Memory Filesystem With libfs Helpers
- Write a Minimal Linux Network Driver With net_device_ops
- Write and Assemble Your First HLASM Program
- Write and Submit Your First JCL Job
- Write an I2C Client Driver for a Temperature Sensor
- Write an I2C Master State Machine in Verilog
- Write an Incremental Parser for Streaming Protocols
- Write an Input Driver for Buttons and Keys
- Write an RTC Driver Using the RTC Framework
- Write a PCI Driver Skeleton With pci_driver and probe
- Write a Physical Memory Manager With a Bitmap Allocator
- Write a Pin Controller Driver With pinctrl
- Write a Portable Sensor Driver With embedded-hal 1.0 Traits
- Write ARM NEON Intrinsics With arm_neon.h
- Write a seccomp Filter With libseccomp
- Write a Simple HTTP/1.1 Server in C
- Write a Startup File in C Instead of Assembly for Cortex-M
- Write a TCP Client in C with connect
- Write a TCP Echo Server in C from Scratch
- Write a TCP Echo Server in Rust with Tokio
- Write a UDP Server and Client in C with sendto
- Write a Verilog Testbench With initial Blocks and $display
- Write a VHDL Entity and Architecture for a Simple Counter
- Write a Watchdog Driver With the Watchdog Core
- Write Better printf Debugging With __FILE__, __LINE__ and __func__
- Write Counted Loops on the 6502 With DEX and BNE
- Write Errors to stderr with perror and err
- Write Loops With PERFORM UNTIL, VARYING and TIMES in COBOL
- Write Pin Constraints in PCF and LPF Files
- Write Safe printf-Style Wrappers With the format Attribute
- Write Your First 6502 Program in a Browser Simulator
- Write Your First CICS COBOL Program With SEND TEXT
- Write Your First Cortex-M Assembly Function and Call It From C
- Write Your First Linux Kernel Module: Hello World in C
- Write Your First Makefile for a C Program
- Write Your First Microbenchmark With Google Benchmark
- Write Your First RTEMS Application With the Classic API
- Write Your First Rust Kernel Module
- Write Your First SSE Intrinsics Loop With _mm_add_ps
- Write Your First Verilog Module: A Blinking LED Counter
- Write Your First x86-64 Program in NASM on Linux
- Write Your First XDP Program to Drop Packets
- x86-64 Addressing Modes: Base, Index, Scale and Displacement
- x86-64 General-Purpose Registers Explained: RAX to R15 and Sub-Registers
- XNU Kernel Architecture: Mach, BSD and IOKit
- z/Architecture Registers, PSW and Instruction Formats for Beginners
- Z80 Registers: A, F, BC, DE, HL, IX, IY and the Shadow Set
- Zombie and Orphan Processes Explained with Examples
Snippets (252)
- Abort a running STM32 DMA transfer with HAL_DMA_Abort
- Accept exactly four CAN IDs with filter list mode
- Add a descriptor to epoll with epoll_ctl and EPOLL_CTL_ADD
- Add a kernel config fragment with a .cfg file in SRC_URI
- Add a package to every image from local.conf with IMAGE_INSTALL:append
- Add eight floats at once with _mm256_add_ps
- Allocate a blk-mq disk with blk_mq_alloc_disk
- Allocate a dynamic major number with alloc_chrdev_region
- Allocate an Ethernet net_device with alloc_etherdev
- Allocate zeroed kernel memory with kzalloc
- Begin an ESP32 OTA with esp_ota_begin and esp_ota_write
- Bind to an ephemeral port and read it back with getsockname
- Block privilege gain across exec with PR_SET_NO_NEW_PRIVS
- Boot with no delay and no key check using bootdelay=-2
- Break when a variable changes with watch in GDB
- Browse a member with the B line command in DSLIST
- Build and run tests with -fsanitize=thread
- Build for a board with a pristine rebuild using west build -p always
- Centre-align STM32 PWM with the TIM CMS bits
- Chain virtqueue descriptors with VRING_DESC_F_NEXT
- Check assumptions at compile time with static_assert
- Check if a number is a power of two with x && !(x & (x - 1))
- Check if a path is a directory with stat and S_ISDIR
- Check if a socket is listening with SO_ACCEPTCONN
- Check malloc's return value and handle allocation failure
- Check printf-style arguments with __attribute__((format(printf, 1, 2)))
- Check Secure Boot state with mokutil --sb-state
- Checksum part of a licence file with beginline and endline
- Check the KVM API version with KVM_GET_API_VERSION
- Choose the hardware target with MIX_TARGET
- Clean the build output but keep downloads with make clean
- Clear a vector register with vpxor ymm0, ymm0, ymm0
- Clear bits on exit with xClearOnExit in xEventGroupWaitBits
- Clear the Commodore 64 screen by calling KERNAL $E544
- Compile a shader to SPIR-V with glslc
- Compute a string's length with equ $ - msg in NASM
- Configure a debug build with meson setup --buildtype=debug
- Configure an STM32 pin as push-pull output via MODER
- Configure a pin from devicetree with gpio_pin_configure_dt
- Configure STM32 SPI1 master mode with SPI_CR1 bits
- Configure USART2 baud rate with the BRR register
- Convert EBCDIC to ASCII with iconv -f IBM-1047
- Convert integers without silent truncation using Rust try_from
- Copy a member to a USS file with cp //'HLQ.SRC(MEM)'
- Copy a register with mv, which is addi rd, rs, 0
- Copy a sequential dataset with IEBGENER SYSUT1 and SYSUT2
- Count CPU cycles on ESP32 with esp_cpu_get_cycle_count
- Count trailing zeros with __builtin_ctz
- Create a binary semaphore with xSemaphoreCreateBinary
- Create a config file with zowe config init
- Create a fence signalled with VK_FENCE_CREATE_SIGNALED_BIT
- Create an instance with libvlc_new
- Create a pipe and read and write both ends
- Create a pseudo filesystem with init_pseudo
- Create a queue of structs with xQueueCreate and sizeof
- Create a read-only seq_file in one line with DEFINE_SHOW_ATTRIBUTE
- Create a TCP socket with socket(AF_INET, SOCK_STREAM, 0)
- Create a user namespace with unshare(CLONE_NEWUSER)
- Create a VAO and VBO with glGenVertexArrays and glGenBuffers
- Create a VkInstance with vkCreateInstance
- Create a VM file descriptor with KVM_CREATE_VM
- Create start-up threads inside tx_application_define
- Crop a centred square with crop=ih:ih
- Cut a clip of fixed length with -t
- Cut ESP32 deep sleep leakage with rtc_gpio_isolate
- Declare a CUDA kernel with __global__
- Declare a mutex statically with DEFINE_MUTEX
- Declare a packed field with DECLARE FIXED DECIMAL
- Declare a signed packed decimal with PIC S9(7)V99 COMP-3
- Declare a workgroup size with layout(local_size_x = 64) in
- Declare module metadata with MODULE_LICENSE and MODULE_AUTHOR
- Declare vertex inputs with layout(location = 0) in
- Decode a packed decimal field byte by byte
- Decode CHIP-8 opcodes into nibbles with bit masks
- Decode on the GPU with -hwaccel cuda
- Decode SPI in PulseView with the spi protocol decoder
- Define a KSDS with DEFINE CLUSTER INDEXED KEYS
- Define a minimal Cortex-M vector table array in C
- Define an Amaranth Elaboratable with an elaborate method
- Define an ESDS with the NONINDEXED parameter
- Define a two-argument syscall with SYSCALL_DEFINE2
- Define a USB device descriptor in tud_descriptor_device_cb
- Detach from the controlling terminal with setsid after fork
- Detect endianness at compile time with __BYTE_ORDER__
- Detect multiplication overflow with __builtin_mul_overflow
- Detect musl at build time without a predefined macro
- Disassemble one function from the shell with gdb -batch
- Dispatch bytecode with a switch inside a loop
- Drive a GPIO line high with gpioset -c chip line=1
- Dump the Clang AST with -Xclang -ast-dump
- Embed a SELECT INTO with EXEC SQL in COBOL
- Enable a PCI device with managed pcim_enable_device
- Enable float printf in newlib-nano with -u _printf_float
- Enable I2C on Raspberry Pi in Yocto with ENABLE_I2C
- Enable Intel CET instrumentation with -fcf-protection=full
- Enable LTO in CMake with CMAKE_INTERPROCEDURAL_OPTIMIZATION
- Enable strong stack canaries with -fstack-protector-strong
- Enable the HSE oscillator and wait for HSERDY on STM32
- Enable vsync with glfwSwapInterval
- Encode with h264_nvenc and -preset p5
- Establish a base register with BALR 12,0 and USING *,12
- Estimate iCE40 timing with icetime from Project IceStorm
- Exit every thread at once with exit_group (231)
- Fetch exact texels with texelFetch
- Fill a sockaddr_un and compute the right address length
- Find long printable strings with strings -n 8
- Find the failing offset in a CEEDUMP
- Generate a testbench clock with always (#5 clk = ~clk)
- Get a GPIO descriptor with devm_gpiod_get
- Get kernel output on your terminal with console=ttyS0
- Get the calling thread's handle with pthread_self
- Get the current and parent PID with getpid and getppid
- Get the current free heap with xPortGetFreeHeapSize
- Get the current user name with getpwuid and geteuid
- Get the GPU with MTLCreateSystemDefaultDevice
- Get the L1 cache line size with sysconf(_SC_LEVEL1_DCACHE_LINESIZE)
- Get the number of elements with sizeof(a) / sizeof(a[0])
- Get the page size with sysconf(_SC_PAGESIZE)
- Get the terminal device name with ttyname
- Get Unix epoch seconds with time and time_t
- Get your process ID with the getpid syscall (39)
- Ignore SIGPIPE process-wide with signal(SIGPIPE, SIG_IGN)
- Implement a VALID/READY register slice in Verilog
- Increment a shared counter with atomic_fetch_add_explicit
- Initialise a mutex statically with PTHREAD_MUTEX_INITIALIZER
- Initialise a ring with io_uring_queue_init
- Initialise stdio over USB or UART with stdio_init_all
- Insert a speculation barrier with _mm_lfence
- Insert into a linked list without special cases using a pointer to a pointer
- Inspect a float's raw bits in Rust with f32::to_bits
- Interleave a process's memory across nodes with numactl --interleave=all
- Jump straight to DSLIST with =3.4
- Keep a section from being discarded with KEEP() in a linker script
- Know that plain loads of atomics compile to ordinary movs on x86
- Limit CPU seconds with RLIMIT_CPU and catch SIGXCPU
- List a binary's runtime libraries with ldd and know its risks
- List a binary's shared library dependencies with ldd
- List ALSA devices with aplay -l
- List CPU feature flags with grep flags /proc/cpuinfo
- List platforms with clGetPlatformIDs
- List the members of a static library with ar t
- Mark rarely called Rust error handlers with the cold attribute
- Match a USB device by vendor and product with USB_DEVICE
- Mount the root filesystem read-only with ro in fstab
- Move QEMU's gdbstub to another port with -gdb tcp::PORT
- Name core files by program and PID with %e and %p in core_pattern
- Name threads with pthread_setname_np so GDB shows them
- Open a file for writing with O_CREAT, O_TRUNC and mode 0644
- Open a live capture with pcap_open_live
- Open an input with avformat_open_input
- Pass a struct to a FreeRTOS task through pvParameters
- Pass context to a timer callback with pvTimerGetTimerID
- Pass the fifth and sixth arguments in r8 and r9
- Pick the main video stream with av_find_best_stream
- Pin the port registry version with builtin-baseline
- Place a variable in AVR EEPROM with the EEMEM attribute
- Print any Makefile variable with a print-% pattern rule
- Print every input file the linker opens with -Wl,--trace
- Print formatted logs with SEGGER_RTT_printf
- Print GCC's include search path with gcc -xc -E -v -
- Print int64_t portably with the PRId64 macro
- Print mimalloc statistics at exit with MIMALLOC_SHOW_STATS=1
- Print signal changes each cycle with $monitor
- Print usage and exit with status 2 on bad options
- Profile a program with nsys profile --trace=cuda,nvtx
- Profile one function only with callgrind --toggle-collect
- Publish data with a release store and an acquire load
- Push onto a lock-free stack with a compare-and-swap loop
- Queue a read with io_uring_prep_read
- Read a devicetree property with DT_PROP
- Read an environment variable with a default fallback in C
- Read a register with i2c_smbus_read_byte_data
- Read a root segment with a GU call
- Read a socket option back with getsockopt and socklen_t
- Read one ADC channel with HAL_ADC_Start and HAL_ADC_PollForConversion
- Read RTSP over TCP with -rtsp_transport tcp
- Read the current core number with xPortGetCoreID on ESP32
- Read the file status flags with fcntl F_GETFL
- Read the main stack pointer with mrs r0, msp
- Read the TSC in C with asm volatile and =a, =d outputs
- Rebuild one driver directory with make M=
- Register a platform driver with module_platform_driver
- Remove a descriptor with EPOLL_CTL_DEL before closing it
- Repeat a measurement and get variance with perf stat -r 5
- Replace division by a constant with a reciprocal multiply on Cortex-M0
- Report every leak category with --show-leak-kinds=all
- Report items per second with state.SetItemsProcessed
- Report leaks at exit with ASAN_OPTIONS=detect_leaks=1
- Report loops that failed to vectorise with -fopt-info-vec-missed
- Request a managed IRQ with devm_request_irq
- Request an adapter with Instance::request_adapter in wgpu
- Request an OpenGL 4.1 core context with glfwWindowHint
- Reserve shadow space with sub rsp, 40 before Windows x64 calls
- Respawn a process forever with ::respawn: in inittab
- Return XDP_PASS, XDP_DROP or XDP_TX from an XDP program
- Rotate 90 degrees with transpose=1
- Run a process with real-time FIFO priority using chrt -f 80
- Run commands when a breakpoint hits with breakpoint command add
- Run initialisation exactly once with pthread_once
- Run Vivado in batch mode with a Tcl build script
- Save errno immediately after a failing call
- Send a message with EXEC CICS SEND TEXT ERASE
- Send part of a file over a socket with sendfile and an offset
- Set a one-time breakpoint with tbreak
- Set a register field with MODIFY_REG from the STM32 headers
- Set breakpoints on functions matching a regex with breakpoint set -r
- Set the Arduino I2C clock to 400 kHz with Wire.setClock
- Set the C standard with CMAKE_C_STANDARD and CMAKE_C_STANDARD_REQUIRED
- Set the guest kernel with PUT /boot-source
- Set the team size with omp_set_num_threads
- Share a pointer safely with C++20 std::atomic of std::shared_ptr
- Share one AVR handler between vectors with ISR_ALIASOF
- Show program headers and segments with readelf -l
- Size a shared memory object with ftruncate after shm_open
- Source the SDK environment-setup script before building
- Split a command line into argv with an in-place tokenizer
- Split fuzz input into typed values with FuzzedDataProvider
- Split NASM code across files with %include
- Start a kernel thread with kthread_run
- Start an exec with a /* REXX */ comment
- Start a thread at runtime with k_thread_create
- Start a Tokio runtime with the
- Start OpenOCD with interface and target scripts using -f
- Start the STM32 IWDG at boot with the IWDG_SW option bit cleared
- Stop on the first UBSan error with -fno-sanitize-recover
- Store a BCD number with the CHIP-8 FX33 instruction
- Store temporary values in convenience variables with set $var
- Swap 16-bit values between host and network order with htons
- Test a display with videotestsrc ! autovideosink
- Time out a receive with an after clause in Erlang
- Trace where a variable was set from bitbake -e history
- Trace whole syscall classes with %file and %network
- Trim a video without re-encoding using -c copy
- Turn a comparison into 0 or 1 with setne and movzx
- Turn off one dtc warning with -Wno-unit_address_vs_reg
- Turn on -Wall -Wextra -Wpedantic to catch UB-adjacent bugs
- Turn one warning into an error with -Werror=return-type
- Turn on runtime subscript checks with SSRANGE
- Upload vertex data once with GL_STATIC_DRAW
- Wake one waiting thread with pthread_cond_signal
- Warn about struct padding with -Wpadded
- Wrap a raw .h264 elementary stream into MP4
- Write a clock divider counter in Verilog
- Write a flip-flop with synchronous reset in Verilog
- Write a JOB card with CLASS, MSGCLASS and NOTIFY=&SYSUID
- Write a NuttX GPIO pin with the GPIOC_WRITE ioctl
- Write a qsort comparator that cannot overflow: (a > b) - (a < b)
- Write a state machine with the with m.FSM() block in Amaranth
- Write a superloop with a millisecond tick and task flags
- Zero a register on AArch64 with mov x0, xzr
- Zero a register with xor eax, eax
- Zero ds, es and ss at the start of a boot sector