Magic Buffers and io_uring Registered Buffers

·Hacker News··

Some Assembly Required Magic Buffers and io_uring Registered Buffers kdb kdb-IPC io_uring Published October 17, 2025 There’s a really cool little mmap gadget that maps the same underlying memory region into two contiguous virtual memory address ranges. When you write past the end of the first mapped region, the remaining bytes end up in the second mapped region (and at the start of the first one). Fabien Giesen calls this a “Magic Ring Buffer”, which is good enough for me. I wondered whether the

Read full article →

Related Articles

Apple Reference Image: A New Approach for Verified Photography
imwally · Hacker News · 9h ago
Building a Linux GPU Driver for the M4 Mac Mini in One Month
ADevWithAnIdea · Hacker News · 15h ago
We got admin access to Baseten's production GitHub
bearsyankees · Hacker News · 16h ago
Show HN: An e-ink frame that hears birds and draws them as 1800s illustrations
arnemunthekaas · Hacker News · 22h ago
America's Driver's License Breach Is a National Security Disaster
hn_acker · Hacker News · 19h ago