iovec - Vector I/O data structure
Contents
Description
Describes a region of memory, beginning at iov_base address and with the size of iov_len bytes. System
calls use arrays of this structure, where each element of the array represents a memory region, and the
whole array represents a vector of memory regions. The maximum number of iovec structures in that array
is limited by IOV_MAX (defined in <limits.h>, or accessible via the call sysconf(_SC_IOV_MAX)).
History
POSIX.1-2001.
Library
Standard C library (libc)
Name
iovec - Vector I/O data structure
Notes
The following header also provides this type: <sys/socket.h>.
See Also
process_madvise(2), readv(2) Linux man-pages 6.9.1 2024-05-02 iovec(3type)
Standards
POSIX.1-2008.
Synopsis
#include<sys/uio.h>structiovec{void*iov_base; /* Starting address */
size_tiov_len; /* Size of the memory pointed to by iov_base. */
};