On Tue, 8 Jul 2003, Jamie Lokier wrote:
> Richard B. Johnson wrote:
> > mmap2(0xb8000, 8192, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 3, 0xb8000) = 0xb8000
> You meant to write:
> mmap2(0xb8000, 8192, PROT_READ|PROT_WRITE,
> MAP_SHARED|MAP_FIXED, 3, 0xb8000 >> 12);
> The offset argument to mmap2 is divided by PAGE_SIZE.
> That is the whole point of mmap2 :)
> -- Jamie
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.
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:27 EST