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

bwrite Kernel Service

Purpose

Writes the specified buffer data.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/buf.h>
int bwrite (bp)
struct buf  *bp;

Parameter

bp Specifies the address of the buffer structure for the buffer to be written.

Description

The bwrite kernel service writes the specified buffer data. If this is a synchronous request, the bwrite service waits for the I/O to complete.

"Block I/O Buffer Cache Kernel Services: Overview" in AIX Kernel Extensions and Device Support Programming Concepts describes how the three buffer-cache write routines work.

Execution Environment

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

Return Values

0 Indicates a successful operation.
ERRNO Returns an error number from the /usr/include/sys/errno.h file on error.

Implementation Specifics

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

Related Information

The brelse kernel service, iowait kernel service.

I/O Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]