biowait - suspend processes pending completion of block I/O
#include <sys/types.h> #include <sys/buf.h> int biowait(struct buf *bp);
Architecture independent level 1 (DDI/DKI).
bp
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.
0
non-zero
biowait() can be called from user context only.
biodone(9F), geterror(9F), getrbuf(9F), buf(9S)
Writing Device Drivers
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |