size64(D2)
size64 - return size of logical block device
As shipped in IRIX 6.5. First release of IRIX 6.5.
NAME size64 - return size of logical block device SYNOPSIS #include <sys/types.h> #include <sys/param.h> #include <sys/ddi.h> int prefixsize64(dev_t dev, daddr_t *blocks); Arguments dev The logical device number. blocks The size of the device in NBPSCTR-byte units (output argument). DESCRIPTION The size64 entry point returns in blocks the number of NBPSCTR-byte units on a logical block device (partition), if successful. If unsuccessful -1 is returned in blocks. NBPSCTR, defined in param.h, is the number of bytes per logical disk sector. Return Values On success, the size64 routine should return 0; on failure, the return value should be an error code. USAGE This entry point is optional in all block device drivers, required only when it is possible to have a device whose size NBPSCTR-byte units will not fit into an int. size64(D2) is called only when the device is open. Synchronization Constraints The size64 routine has user context and can sleep. However, it should be careful not to spend much time sleeping, especially if the routine is called when the logical device is not open. SEE ALSO size(D2)