ldi_get_size - Retrieve device size
#include <sys/sunldi.h> int ldi_get_size(ldi_handle_t lh, uint64_t *sizep);
lh
sizep
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().
The ldi_get_size() function returns the following values:
DDI_SUCCESS
DDI_FAILURE
This function may be called from user or kernel context.
ldi_open_by_name(9F)
Writing Device Drivers
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |