[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

fp_writev Kernel Service

Purpose

Performs a write operation on an open file with arguments passed in iovec elements.

Syntax

#include <sys/types.h>
#include <sys/errno.h>

int fp_writev (fp, iov, iovcnt, ext, segflag, countp)
struct file *fp;
struct iovec *iov;
int iovcnt;
int ext;
int segflag;
int *countp;

Parameters

fp Points to a file structure returned by the fp_open kernel service.
iov Points to an array of iovec elements. Each iovec element describes a buffer containing data to be written to the file.
iovcnt Specifies the number of iovec elements in an array pointed to by the iov parameter.
ext Specifies an extension argument required by some device drivers. Its content, form, and use are determined by the individual driver.
segflag Indicates which part of memory the information designated by the iov parameter is located in:
SYS_ADSPACE The information designated by the iov parameter is in kernel memory.
USER_ADSPACE The information designated by the iov parameter is in application memory.
countp Points to the location where the count of bytes actually written to the file is to be returned.

Description

The fp_writev kernel service is an internal interface to the function provided by the writev subroutine.

Execution Environment

The fp_writev kernel service can be called from the process environment only.

Return Values

0 Indicates a successful operation.

If an error occurs, one of the values from the /usr/include/sys/errno.h file is returned.

Implementation Specifics

The fp_writev kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The writev subroutine.

Logical File System Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]