IODONE(K) UNIX System V IODONE(K)
Name
iodone - signals I/O completion
Syntax
int
iodone(bp)
struct buf * bp;
Description
The iodone routine completes a block driver's I/O request
and wakes up all processes waiting completion of block I/O
requests. This routine is generally placed in a driver's
interrupt routine. iodone calls brelse(K) to release the
buffer, followed by wakeup to awaken the sleeping processes.
iodone ORs B_DONE into b_flags.
Parameters
The bp argument specifies a struct buf * that addresses the
buffer.
Notes
Note that this routine can be used only with block device
drivers.
See Also
brelse(K), iowait(K)
(printed 7/6/89)