[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

Execution Environment

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

Related Information

The brelse kernel service.

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

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]