[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel and Subsystems Technical Reference, Volume 1

bawrite Kernel Service

Purpose

Writes the specified buffer data without waiting for I/O to complete.

Syntax

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

int bawrite (bp)
struct buf *bp;

Parameter

bp Specifies the address of the buffer structure.

Description

The bawrite kernel service sets the asynchronous flag in the specified buffer and calls the bwrite kernel service to write the buffer.

For a description of how the three buffer-cache write subroutines work, see "Block I/O Buffer Cache Services: Overview" in AIX Kernel Extensions and Device Support Programming Concepts.

Execution Environment

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

Return Values

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

Implementation Specifics

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

Related Information

The bwrite kernel service.

Block I/O Buffer Cache Kernel Services: Overview and I/O Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]