Query: ldi_get_size
OS: sunos
Section: 9f
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ldi_get_size(9F) Kernel Functions for Drivers ldi_get_size(9F)NAMEldi_get_size - Retrieve device sizeSYNOPSIS#include <sys/sunldi.h> int ldi_get_size(ldi_handle_t lh, uint64_t *sizep);PARAMETERSlh Layered handle. sizep Pointer to the caller's unsigned 64-bit integer buffer.DESCRIPTIONThe ldi_get_size() 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 ldi_open_by_name(9F) interface prior to calling ldi_get_size().RETURN VALUESThe ldi_get_size() function returns the following values: DDI_SUCCESS The device size has been returned within the caller supplied buffer. DDI_FAILURE The device size could not be found or determined.CONTEXTThis function may be called from user or kernel context.SEE ALSOldi_open_by_name(9F) Writing Device Drivers SunOS 5.10 18 Mar 2004 ldi_get_size(9F)
Related Man Pages |
---|
ldi_add_event_handler(9f) - sunos |
ldi_close(9f) - sunos |
ldi_get_eventcookie(9f) - sunos |
ldi_open_by_devid(9f) - sunos |
ldi_get_eventcookie(9f) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
The 500 Mile Email |
Merge and Sort tabular data from different text files |
Once upon an uptime. |
Best performance UNIX just for HOST Virtualization? |
Sort only numbers within a string |