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;
Item | Description |
---|---|
bp | Specifies the address
of the buffer structure for the buffer
to be written. On a platform that supports storage keys, the passed in bp parameter must be in the KKEY_PUBLIC or KKEY_BLOCK_DEV protection domain. |
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.
For a description of how the three buffer-cache write subroutines work, see "Block I/O Buffer Cache Kernel Services: Overview" in AIX® Version 7.1 Kernel Extensions and Device Support Programming Concepts.
The bdwrite kernel service can be called from the process environment only.
The bdwrite kernel service has no return values.