linux/drivers/uio
Andrew G. Harvey 02683ffdf6 UIO: Fix mapping of logical and virtual memory
mmap() doesn't work as expected for UIO_MEM_LOGICAL or UIO_MEM_VIRTUAL
mappings. The offset into the memory needs to be added, otherwise
uio_vma_fault always returns the first page only. Note that for UIO
userspace calls mmap() with offset = N * getpagesize() to access
mapping N. This must be compensated when calculating the offset. A
comment was added to explain this since it is not obvious.

Signed-off-by: Andrew G. Harvey <agh@cisco.com>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-10-16 09:24:54 -07:00
..
Kconfig UIO: add automata sercos3 pci card support 2008-10-16 09:24:53 -07:00
Makefile UIO: add automata sercos3 pci card support 2008-10-16 09:24:53 -07:00
uio.c UIO: Fix mapping of logical and virtual memory 2008-10-16 09:24:54 -07:00
uio_cif.c UIO: Remove needless PCI_DEVICE_ID definition from uio_cif.c 2008-04-19 19:10:18 -07:00
uio_pdrv.c UIO: Change driver name of uio_pdrv 2008-10-16 09:24:53 -07:00
uio_pdrv_genirq.c UIO: generic irq handling for some uio platform devices 2008-08-21 10:15:39 -07:00
uio_sercos3.c UIO: add automata sercos3 pci card support 2008-10-16 09:24:53 -07:00
uio_smx.c UIO: Implement a UIO interface for the SMX Cryptengine 2008-04-19 19:10:18 -07:00