bawrite Kernel Service
Purpose
Writes the specified buffer data without waiting for I/O to complete.
Syntax
#include <sys/types.h> #include <sys/errno.h> #include <sys/buf.h> int bawrite ( bp) struct buf *bp;
Parameter
Item | Description |
---|---|
bp | Specifies
the address of the buffer structure. 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 bawrite kernel service sets the asynchronous flag in the specified buffer and calls the bwrite kernel service to write the buffer.
Execution Environment
The bawrite kernel service can be called from the process environment only.
Return Values
Item | Description |
---|---|
0 | Indicates successful completion. |
ERRNO | Returns an error number from the /usr/include/sys/errno.h file on error. |