suspend execution pending completion of block I/O
int biowait(buf_t *bp);
The biowait function suspends process execution during block I/O.
This wait will not be interrupted by signals.
if you wish to be able to be interrupted
Pointer to the buffer header structure.
If an error occurred during the I/O transfer, the error number is returned.
Otherwise, on success, 0 is returned.
Block drivers that have allocated their own buffers with
can use biowait
to suspend the current process execution while waiting for a read
or write request to complete.
Drivers using biowait must use
in their I/O completion handlers to signal biowait
when the I/O transfer is complete.
Context and synchronization
User or blockable
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005