TODO: parse the mmap structure