getting physical address of buffer into user space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've read tutorials and seen example programs on how to get page information into userspace 
(eventually, I'll want to dma from a UIO driver)

For POC, I have a simple driver with an mmap rule, which does kmalloc on a new buffer.

The driver can read/write the memory, and the user space program can read/write the memory (and both
sides agree on the data read/written).

It appears in /proc/self/maps, and when I try to look it up in /proc/self/pagemap, it says its
neither swapped nor present.

This seems like a clever way -- if it works (the alternative is sloppy ioctl's or other custom
methods)

-- 
Marty Leisner <linux@xxxxxxxxxxxxxxxx>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux