Re: syscall __NR_mmap2

From: Jamie Lokier (
Date: Tue Jul 08 2003 - 09:05:46 EST

Richard B. Johnson wrote:
> > The offset argument to mmap2 is divided by PAGE_SIZE.
> > That is the whole point of mmap2 :)
> Okay. Do you know where that's documented? Nothing in linux/Documentation,
> and nothing in any headers. Do you have to read the code to find out?
> So, the address is now the offset in PAGES, not bytes. Seems logical,
> but there is no clue in any documentation.

I found this great command which really helps. Only 1337 kernel
gnurus know about it, now u can be 1 2 :)

$ man mmap2
       The function mmap2 operates in exactly the same way as mmap(2), except
       that the final argument specifies the offset into the file in units of
       the system page size (instead of bytes).

-- Jamie
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:27 EST