Is it possible to use “munmap” without knowing the length of data which was originally mapped?
I’m porting code and have had to change "malloc"s and "free"s to “mmap” and “munmap” to ensure that the cache isn’t used. (Otherwise I get problems with a DMA transfer). My problem is that the pointer to the memory is easily available but the length isn’t so readily available because it wasn’t required for the “free” command.
Is there a default value which i can give for the length in the “munmap” command which ensures that all the mapped memory associated with this pointer is unmapped?
Thanks in advance!