DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

disksort(D3oddi)


disksort -- add a block I/O request to a device's queue

Synopsis

#include <sys/iobuf.h>

int disksort(struct iobuf *xxtab, struct buf *bp);

Description

The disksort function adds a block device I/O request to the queue of such requests for a particular device.

Arguments


xxtab
the address of an iobuf data structure declared within the driver to form the head of the I/O request queue. This parameter points to the head of the request queue.

bp
a pointer to a buf data structure that describes the I/O request to be added to the queue.

Return values

None.

Usage

This routine is only for use with block device drivers. The driver's strategy(D2oddi) routine normally calls disksort. The queue of requests is sorted in ``elevator'' ascending order by disksort to optimize disk head movement.

The driver writer must use lockb(D3oddi) (or, on uniprocessor systems, spl(D3oddi)) to provide mutual exclusion to the queue before calling disksort.

Context and synchronization

Blockable context

Hardware applicability

All

Version applicability

oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

SVR5 DDI compatibility

This function is not supported for DDI drivers.
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005