Re: Accessing h/w without kernel intervention



Mayuresh <b166er.496@xxxxxxxxx> wrote:

Is it at all possible for a user space non privileged process to
access some hardware in the system without making a system call or
otherwise going thru the kernel to gain access?

I have come across fleeting references to memory mapped I/O devices
where you can register some user space memory with the device and
after that I/O is done by just writing to this memory. I want to
understand if this is true or if the kernel is still involved in some
way under the hoods.

Your X server is a normal user-mode process. It access the display
hardware by accessing I/O ports, mapping physical memory, and talking to
the frame buffer and registers through the memory maps.

It is, however, suid root, so I it doesn't really qualify as "non
privileged".
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: + edac-new-opteron-athlon64-memory-controller-driver.patch added to -
    ... So we can kill the processes using that memory. ... What is the chipsets idea of which DIMM the memory error occurred on. ... There has always been enough information to determine the hardware ... some that are not easily accessible to user space so a kernel driver ...
    (Linux-Kernel)
  • Re: + edac-new-opteron-athlon64-memory-controller-driver.patch added to -
    ... Memory errors are by far the most common kind of hardware error ... What is the chipsets idea of which DIMM the memory error occurred on. ... user space figure it out from there. ...
    (Linux-Kernel)
  • [PATCH 21/22] HWPOISON: send uevent to report memory corruption
    ... This allows the user space to do some flexible policies. ... +Memory may have soft errors and the more memory you have the more errors. ... +Normally hardware hides that from you by correcting it, ... +report the memory corruption before they are consumed. ...
    (Linux-Kernel)
  • Re: Accessing h/w without kernel intervention
    ... Is it at all possible for a user space non privileged process to ... I have come across fleeting references to memory mapped I/O devices ... understand if this is true or if the kernel is still involved in some ...
    (comp.os.linux.development.system)
  • running diagnostics application in user space to test hardware:
    ... we are trying write diagnostics application in user space. ... is that the testing should be done in user space as much as possible. ... how do you implement memory test from user space. ... hardware has to ...
    (comp.os.linux.development.system)