return size of logical block device
Synopsis (Not in current DDI version)
int prefixsize(dev_t dev);
entry point routine
returns the number of NBPSCTR-byte units on a
logical block device (partition).
NBPSCTR, defined in param.h,
is the number of bytes per logical disk sector.
routine is a named entry point
and must be defined as a global symbol.
The logical device number.
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.
This entry point is required in all block device drivers.
is called only when the device is open.
Context and synchronization
The driver can block and can do operations such as
that require access to
the requesting process's user-level address space.
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp
Named entry point routines must be declared
in the driver's
The declaration for this entry point is
Differences between versions
Starting with DDI version 8, the
entry point routine is replaced by
the DI_SIZE subfunction of the
entry point routine.
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005