|BIOWAIT(9F)||Kernel Functions for Drivers||BIOWAIT(9F)|
#include <sys/types.h> #include <sys/buf.h> int biowait(struct buf *bp);
Architecture independent level 1 (DDI/DKI).
Drivers allocating their own buf structures with getrbuf(9F) can use the biowait() 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(). biodone() is usually called in the interrupt routine.
biowait() can be called from user context only.
Writing Device Drivers
|April 11, 1991||OmniOS|