Releases the specified buffer after marking it for delayed write.
#include <sys/types.h> #include <sys/errno.h> #include <sys/buf.h>
void bdwrite (bp) struct buf *bp;
bp | Specifies the address of the buffer structure for the buffer to be written. |
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.
The bdwrite kernel service can be called from the process environment only.
The bdwrite kernel service is part of Base Operating System (BOS) Runtime.
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.