> > 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.