xref: /illumos-gate/usr/src/man/man9s/iovec.9s (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
1.\" Copyright 2018, Joyent, Inc.
2.\" Copyright (c) 2000, Sun Microsystems, Inc. All Rights Reserved.
3.\" Copyright 1989 AT&T
4.\" The contents of this file are subject to the terms of the
5.\" Common Development and Distribution License (the "License").
6.\" You may not use this file except in compliance with the License.
7.\"
8.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9.\" or http://www.opensolaris.org/os/licensing.
10.\" See the License for the specific language governing permissions
11.\" and limitations under the License.
12.\"
13.\" When distributing Covered Code, include this CDDL HEADER in each
14.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15.\" If applicable, add the following below this CDDL HEADER, with the
16.\" fields enclosed by brackets "[]" replaced with your own identifying
17.\" information: Portions Copyright [yyyy] [name of copyright owner]
18.Dd July 9, 2018
19.Dt IOVEC 9S
20.Os
21.Sh NAME
22.Nm iovec
23.Nd data storage structure for I/O using uio
24.Sh SYNOPSIS
25.In sys/uio.h
26.Sh INTERFACE LEVEL
27Architecture independent level 1 (DDI/DKI).
28.Sh DESCRIPTION
29An
30.Vt iovec
31structure describes a data storage area for transfer in a
32.Xr uio 9S
33structure.
34Conceptually, it can be thought of as a base address
35and length specification.
36.Sh STRUCTURE MEMBERS
37.Bd -literal -offset 2n
38caddr_t    iov_base;  /* base address of the data storage area */
39                      /* represented by the iovec structure */
40int        iov_len;   /* size of the data storage area in bytes */
41.Ed
42.Sh SEE ALSO
43.Xr uio 9S
44.Rs
45.%T Writing Device Drivers
46.Re
47