aiocb(3type)
π aiocb(3type) β bestie, it's the async I/O control block β¨
okay so you're in the <aio.h> section 3type girlies and you found this lil struct called aiocb β that's asynchronous I/O control block for the uninitiated β and it's genuinely the blueprint for every async read/write you're gonna do. no cap, this is the whole personality of POSIX async I/O right here. let's get into it π¦
π LIBRARY
Standard C library (libc) β she's built in, you don't gotta install anything, periodt π
β¨ SYNOPSIS β¨
#include <aio.h>
struct aiocb {
int aio_fildes; /* File descriptor */
off_t aio_offset; /* File offset */
volatile void *aio_buf; /* Location of buffer */
size_t aio_nbytes; /* Length of transfer */
int aio_reqprio; /* Request priority offset */
struct sigevent aio_sigevent; /* Signal number and value */
int aio_lio_opcode; /* Operation to be performed */
};
look at her. seven fields. every single one of them doing its little job. iconic behavior fr fr π
πΈ DESCRIPTION
so if you want the actual tea about this structure β what it does, how it behaves, all the lore β go read aio(7). she's the main character page, this one is just the supporting cast introduction. iykyk π«Ά
π STANDARDS
POSIX.1-2024. that's her pedigree bestie, she's official β¨
π°οΈ HISTORY
she's been around since POSIX.1-1996 β a true vintage queen, older than most of the internet π
π SEE ALSO
aio_cancel(3)aio_error(3)aio_fsync(3)aio_read(3)aio_return(3)aio_suspend(3)aio_write(3)lio_listio(3)
all her besties, all linked, all worth a read π
and that's the whole vibe β¨ this one's from Linux man-pages 6.20, dated 2026-02-08 β go off, read the struct, write some async I/O, slay π π
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: Linux-man-pages-copyleft
- Copyright 2020, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms