On 3/28/2024 8:21 AM, Gregory Nutt wrote:
On 3/28/2024 1:03 AM, yfliu2008 wrote:
Have UIO framework added which exposes an "uio_register_device()"
interface to BSP so that to instantiate different UIO devices
with specific device path, address range and IRQ data.
Then userland apps can use standard file operation interfaces to access the UIO
devices in a portable manner. We proabably can start with simpler devices with
only one memory range and one IRQ.
You are proposing that the application control the virtual address
space? That is a really bad idea. The OS should (and does) control
the virtual address space)
One thing to be careful with is the security issue: No operation by an
application should permit visibility of the kernel address space to an
application. That would be a gaping security hole and must be avoided.