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;
struct buf *bp;
Parameter
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. |
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.
Execution Environment
The bdwrite kernel service can be called from the process environment only.
Return Values
The bdwrite kernel service has no return values.