> The linux kernel is full of calls to virt_to_phys. This function
> seems only to work in kernel mode. Is there a way to convert a
> physical address to a virtual address in user mode (from a regular
> program)?
No -- I don't think there presently is.
I think Richard Gooch posted a patch so that this could be done ages
ago (via ioctl or something).
Userland doesn't (or shouldn't) need to know physical addresses
normally -- can you explain why you might need this?
(I'm not saying you don't, I've tested drivers from userland before,
so its conceivable there are uses for this)
-cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/