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

bdwrite Kernel Service

Purpose

Releases the specified buffer after marking it for delayed write.

Syntax

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

Parameter

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

Description

The bdwrite kernel service marks the specified buffer so that the block is written to the device when the buffer is stolen. The bdwrite service marks the specified buffer as delayed write and then releases it (that is, puts the buffer on the free list). When this buffer is reassigned or reclaimed, it is written to the device.

The bdwrite service has no return values.

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

Execution Environment

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

Implementation Specifics

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

Related Information

The brelse 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.


[ Previous | Next | Contents | Home | Search ]