Subject: Re: Frame buffer / mmap() weirdness
From: Gabriel Paubert (paubert@iram.es)
Date: Wed Dec 01 1999 - 02:54:04 MST
Hi,
> > Don't know for mmap(), but it seems the only change to munmap() is
> > to clear the appropriate number of low-order bits in its first argument
> > ( addr & 0xfffff000 for 32-bit machines with 4k page size).
>
> You are right. Since I guess the other mmap()s in the kernel are POSIX
> compliant, I feel silly now.
I probably have missed something but recent 2.3.xx kernels apparently
prohibit performing mmap at non page aligned offsets since
arch/${ARCH}/kernel/somefile.c constains sys_mmap which calls (rather
directly) mm/mmap.c{do_mmap} where
if (off & ~PAGE_MASK)
return -EINVAL;
so does Posix the offset value passed to mmap to be restricted ?
Gabriel.
This archive was generated by hypermail 2a24 : Fri Dec 03 1999 - 19:07:45 MST