reset a private buffer for reuse after completed I/O
void bioreset(buf_t *bp);
The bioreset function is called by drivers which
have allocated a private buffer for block I/O
and want to use the buffer multiple times.
When called, bioreset resets the buffer header
pointed to by bp as follows:
clears the B_DONE and B_ERROR flags
set for the previous I/O operation in the
clears error codes (if any)
returned for the previous I/O operation in the
Pointer to the buffer header structure.
To reuse a buffer,
the driver calls bioreset at the end of each I/O operation
to reset the buffer's header structure.
The reset prepares the buffer for reuse during the next I/O operation.
bioreset may also be called prior to performing
any I/O operation,
although this is not required.
The calling driver must ``own'' the buffer for which the reset
is being requested.
I/O must not be in progress when bioreset is called.
Context and synchronization
4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005