int libmem_get_sector_info(uint8_t *start, const libmem_geometry_t *geometry, const uint8_t *p, libmem_sector_info_t *info);
libmem_get_sector_info is a helper function that returns the sector information for an address within a specified geometry.
start — A pointer to the start address of the geometry desribed by geometry.
geometry — A pointer to the NULL terminated geometry description.
p — A pointer to the address to determine the sector information of.
info — A pointer to the libmem_sector_info_t structure to write the sector information to.
libmem_get_sector_info returns — The LIBMEM status result.