AIO_SUSPEND(2)
π€ AIO_SUSPEND(2) β the βgo take a nap until async I/O wakes youβ manual π€
π€ NAME π€
aio_suspend β suspend until asynchronous I/O operations or timeout complete (REALTIME)
π LIBRARY π
Standard C Library (libc, -lc)
β¨ SYNOPSIS β¨
#include <aio.h>
int
aio_suspend(const struct aiocb *const iocbs[], int niocb,
const struct timespec *timeout);
π«Ά DESCRIPTION π«Ά
okay so aio_suspend() is the system call that puts the calling process on pause until at least one of the specified asynchronous I/O requests have completed, a signal is delivered, or the timeout has passed. itβs giving βwait for the group chat to finally say somethingβ energy, fr fr.
The iocbs argument is an array of niocb pointers to asynchronous I/O requests. Array members containing null pointers will be silently ignored β lowkey iconic of them tbh.
If timeout is not a null pointer, it specifies a maximum interval to suspend. If timeout is a null pointer, the suspend blocks indefinitely. To effect a poll, timeout should point to a zero-value timespec structure. β¨
π RETURN VALUES π
If one or more of the specified asynchronous I/O requests have completed, aio_suspend() returns 0. Otherwise it returns -1 and sets errno to indicate the error, as enumerated below. slay.
π ERRORS π
The aio_suspend() system call will fail if:
[EAGAIN]β the timeout expired before any I/O requests completed.[EINVAL]β Theiocbsargument contains more asynchronous I/O requests than thevfs.aio.max_aio_queue_per_procsysctl(8)variable, or at least one of the requests is not valid.[EINTR]β the suspend was interrupted by a signal.
π SEE ALSO π
π STANDARDS π
The aio_suspend() system call is expected to conform to the IEEE Std 1003.1 (βPOSIX.1β) standard. periodt π
π¦ HISTORY π¦
The aio_suspend() system call first appeared in FreeBSD 3.0.
π AUTHORS π
This manual page was written by Wes Peters <wes@softweyr.com>.
okay bye bestie π«Ά this page is from Debian, dated October 23, 2017, and it lives under AIO_SUSPEND(2) π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1999 Softweyr LLC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms