pub unsafe extern "C" fn flash_get_size(
dev: *const device,
size: *mut u64,
) -> i32
Expand description
@brief Get device size in bytes.
Returns total logical device size in bytes. Not all devices may support returning size, specifically those with non uniform page layouts or banked, in which case the function will return -ENOTSUP, and user has to rely on Flash page layout functions enabled by CONFIG_FLASH_PAGE_LAYOUT.
@param[in] dev flash device. @param[out] size device size in bytes.
@return 0 on success, negative errno code on error.