size_t libmem_get_driver_sector_size(const uint8_t *p);

libmem_get_driver_sector_size is a helper function that locates the driver for a specific address and then returns the sector size for that address using the driver's geometry.

p — A pointer to the address to determine the sector information of.

libmem_get_driver_sector_size returns — The size of the sector or 0 if the sector cannot be found.