Kernel Functions for Drivers ldigetsize(9F)
NAME
ldigetsize - Retrieve device size
SYNOPSIS
#include
int ldigetsize(ldihandlet lh, uint64t *sizep);
PARAMETERS
lh Layered handle.
sizep Pointer to the caller's unsigned 64-bit integer
buffer.
DESCRIPTION
The ldigetsize() function uses the layered driver handle
to calculate and return a device's size. The device size is
returned within the caller supplied buffer (*sizep). A valid
layered driver handle must be obtained via the
ldiopenbyname(9F) interface prior to calling
ldigetsize().
RETURN VALUES
The ldigetsize() function returns the following values:
DISUCES The device size has been returned within the
caller supplied buffer.
DIFAILURE The device size could not be found or deter-
mined.
CONTEXT
This function may be called from user or kernel context.
SEE ALSO
ldiopenbyname(9F)
Writing Device Drivers
SunOS 5.11 Last change: 18 Mar 2004 1
|