DISKSORT(K) UNIX System V DISKSORT(K)
Name
disksort - adds a block I/O request to a device's queue
Syntax
#include "sys/iobuf.h"
int
disksort(xxtab, bp)
struct iobuf *xxtab;
struct buf *bp;
Description
The disksort routine adds a block device I/O request to the
queue of such requests for a particular device. The device
xxstrategy routine normally calls disksort. The xxtab
parameter points to the head of the request queue, and the
bp parameter addresses the buf structure containing the
request. The queue of requests is sorted in ascending order
by the disksort routine to optimize disk head movement.
Parameters
The xxtab parameter is the address of an iobuf data
structure declared within the driver to form the head of the
I/O request queue.
The bp argument is a buf * data structure that points to the
I/O request to be added to the queue.
Notes
This routine is only for use with block device drivers.
(printed 7/6/89)