iovec(3type)

iovec3type

Vector i/o data structure

Usage

#include <sys/uio.h>

struct iovec { void *iov_base; /* Starting address */ size_t iov_len; /* Size of the memory pointed to by iov_base. */ };

Library

Standard C library (libc)

Overview

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)).

Notes

The following header also provides this type: <sys/socket.h>.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Standards

POSIX.1-2024.

History

SUSv1, POSIX.1-2001 XSI.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.