SVR5
met_ds_iodone(D3)
met_ds_iodone --
update disk statistics when a read or write request completes
Synopsis
#include <sys/types.h>
#include <sys/ddi.h>
void
met_ds_iodone(met_disk_stats_t *dsp, uint b_flags, ulong bytes)
Description
met_ds_iodone updates disk statistics when a
read or write request completes.
Arguments
dsp-
Pointer to a met_disk_stats_t statistics structure.
b_flags-
The contents of the buffer header flags field.
bytes-
The number of bytes transferred by the read or write request.
Return values
None.
Usage
When a read or write request completes and before
the next request is sent, the driver must call
met_ds_iodone to update I/O completion statistics.
dsp is a pointer to a
met_disk_stats_t statistics structure
which was allocated via a call to
met_ds_alloc_stats(D3).
met_ds_iodone should be protected from interrupts.
Context and synchronization
Non-blockable, interrupt, user, or blockable
context.
Hardware applicability
All
Version applicability
ddi:
5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
References
met_ds_alloc_stats(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005