I'm trying to understand what functions memalign() and posix_memalign() do. Reading the available documentation didn't help.
Can someone help me understand how it works and what is it used for? Or, perhaps provide a usage example?
I'm trying to understand how linux memory works, I need to write my own simple memory pool (low-fragmentation heap).