size(D2DK) —
NAME
size − return size of logical block device
SYNOPSIS
#include <sys/types.h>
#include <sys/param.h>
int prefixsize(dev_t dev);
ARGUMENTS
devThe logical device number.
DESCRIPTION
The size entry point returns the number of NBPSCTR-byte units on a logical block device (slice). NBPSCTR, defined in param.h, is the number of bytes per logical disk sector. This routine is required for block drivers.
NOTES
The size routine has user context and can sleep.
RETURN VALUE
On success, the size routine should return the number of NBPSCTR-byte units on the logical block device specified by dev; on failure, size should return −1.
DDI/DKI