BIOWAIT(9F)BIOWAIT(9F)NAMEbiowait - suspend processes pending completion of block I/O
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) can use
the biowait() function to suspend the current thread and wait for com‐
pletion of the transfer.
Drivers must call biodone(9F) when the transfer is complete to notify
the thread blocked by biowait(). biodone() is usually called in the
Upon I/O failure. biowait() calls geterror(9F) to retrieve
the error number which it returns.
CONTEXTbiowait() can be called from user context only.
SEE ALSObiodone(9F), geterror(9F), getrbuf(9F), buf(9S)
Writing Device Drivers
Apr 11, 1991 BIOWAIT(9F)