Re: [PATCH v2] mmap.2: MAP_FIXED updated documentation
From: Cyril Hrubis
Date: Wed Dec 06 2017 - 05:02:42 EST
Hi!
> (It does seem unfortunate that the man page cannot help the programmer
> actually write correct code here. He or she is forced to read the kernel
> implementation, in order to figure out the true alignment rules. I was
> hoping we could avoid that.)
It would be nice if we had this information exported somehere so that we
do not have to rely on per-architecture ifdefs.
What about adding MapAligment or something similar to the /proc/meminfo?
--
Cyril Hrubis
chrubis@xxxxxxx