Re: [PATCH] mm: mmap system call does not return EOVERFLOW
From: KOSAKI Motohiro
Date: Thu Dec 22 2011 - 12:41:49 EST
> The argument "offset" is shifted right by PAGE_SHIFT bits
> in sys_mmap(mmap systemcall).
>
> ------------------------------------------------------------------------
> sys_mmap(unsigned long addr, unsigned long len,
> unsigned long prot, unsigned long flags,
> unsigned long fd, unsigned long off)
> {
> error = sys_mmap_pgoff(addr, len, prot, flags, fd, off>> PAGE_SHIFT);
> }
> ------------------------------------------------------------------------
Hm.
Which version are you looking at? Current code seems to don't have
sys_mmap().
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/