met_ds_iodone(D3) met_ds_iodone(D3)
NAME
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)
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.
DESCRIPTION
met_ds_iodone updates disk statistics when a read or write
request completes.
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.
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
Copyright 1994 Novell, Inc. Page 1
met_ds_iodone(D3) met_ds_iodone(D3)
REFERENCES
met_ds_alloc_stats(D3)
NOTICES
Portability
All processors
Applicability
ddi: 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 2