ldi_get_size man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

LDI_GET_SIZE(9F)					      LDI_GET_SIZE(9F)

NAME
       ldi_get_size - Retrieve device size

SYNOPSIS
       #include <sys/sunldi.h>

       int ldi_get_size(ldi_handle_t lh, uint64_t *sizep);

PARAMETERS
       lh
		 Layered handle.

       sizep
		 Pointer to the caller's unsigned 64-bit integer buffer.

DESCRIPTION
       The 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 VALUES
       The ldi_get_size() function returns the following values:

       DDI_SUCCESS
		      The device size has been returned within the caller sup‐
		      plied buffer.

       DDI_FAILURE
		      The device size could not be found or determined.

CONTEXT
       This function may be called from user or kernel context.

SEE ALSO
       ldi_open_by_name(9F)

       Writing Device Drivers

				 Mar 18, 2004		      LDI_GET_SIZE(9F)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net