Writes the specified buffer data.
#include <sys/types.h> #include <sys/errno.h> #include <sys/buf.h>
int bwrite (bp) struct buf *bp;
|bp||Specifies the address of the buffer structure for the buffer to be written.|
The bwrite kernel service writes the specified buffer data. If this is a synchronous request, the bwrite service waits for the I/O to complete.
"Block I/O Buffer Cache Kernel Services: Overview" in AIX Kernel Extensions and Device Support Programming Concepts describes how the three buffer-cache write routines work.
The bwrite kernel service can be called from the process environment only.
|0||Indicates a successful operation.|
|ERRNO||Returns an error number from the /usr/include/sys/errno.h file on error.|
The bwrite kernel service is part of Base Operating System (BOS) Runtime.
The brelse kernel service, iowait kernel service.
I/O Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.