Re: PATCH: Fix offset of mmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> > I believe this would break certain pieces of hardware. For example the
> > mq200 framebuffer in the sigmarion is not paged aligned. You have to
> > supply a offset to make it work.
> 
> How do you mmap a memory whose offset is not page aligned? The code
> here is
> 
> return do_mmap2(addr, len, prot, flags, fd, offset >> PAGE_SHIFT);
> 					    ^^^^^^^^^^^^^^^^^^^^
> 
> It is up to the user code to make sure everything is ok.

Sorry. Mix up in the meaning of offset. 




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux