BIOWAIT(9F) Kernel Functions for Drivers BIOWAIT(9F)
biowait - suspend processes pending completion of block I/O
#include <sys/buf.h> int biowait
(struct buf *bp
Architecture independent level 1 (DDI/DKI).
Pointer to the buf
structure describing the transfer.
Drivers allocating their own buf
structures with getrbuf(9F)
function to suspend the current thread and wait for
completion of the transfer.
Drivers must call biodone(9F)
when the transfer is complete to notify
the thread blocked by biowait()
is usually called in the
RETURN VALUES 0
Upon success non-zero
the error number which it returns.
can be called from user context only.
SEE ALSO biodone(9F)
, buf(9S) Writing Device Drivers
April 11, 1991 BIOWAIT(9F)