user_to_phys() without mmap?



I'm trying to use a framebuffer from user space (think plain video ram, not some PCI or AGP video card), but mmap'ing from kernel space into user space is causing large latencies and unsightly artifacts. It appears that anything written into the mmap'ed user memory is in fact being copied into kernel space.

What I was actually hoping was that the memory manager would simply map the underlying physical pages directly into the user's address space. I think that's simple enough to do in theory, but there is much that I don't know about Linux kernel internals, so in practice who knows?

Has anybody else made physical memory directly accessible from user space, without resorting to copying data back and forth continually?
.



Relevant Pages

  • Re: user_to_phys() without mmap?
    ... into user space is causing large latencies and unsightly artifacts. ... fact being copied into kernel space. ... Only the MMU will interfere accesses to ... virtual memory locations from user space, ...
    (comp.os.linux.development.system)
  • [PATCH] uaccess.h: match kernel-doc and function names
    ... * Context: User context only. ... * Copy data from kernel space to user space. ... * On success, this will be zero. ...
    (Linux-Kernel)
  • Re: kernel space and user space in RHEL AS3.0
    ... IBM machine has 16GB physical Memory What size estimate ... Kernel space and User space? ... Some Oracle articles say that Oracle VLM can allocate Physical ... Mem to User space as database cache. ...
    (alt.os.linux)
  • Re: User space vs kernel space device access
    ... > limited to it's memory mapped registers. ... > the device by mapping it's memory region into user space. ... blocks of data to/from the device, a device driver will perform better. ... adding kernel space code can make the kernel instable ...
    (comp.os.linux.embedded)
  • Re: [RFC] SPI core -- revisited
    ... >DMA to copy data from user to kernel space? ... >cause page faults which ensure that the user space pages are paged in ... where dev is actually an SPI device. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)