Hi, I did find the virt_to_phys in io.h and it works.
From: BlaisorBlade [mailto:blaisorblade_spam@...]=20
Sent: Tuesday, July 20, 2004 9:51 AM
To: Tsillas, Demetrios J; user-mode-linux-user@...
Subject: Re: [uml-user] help with remap_page_range
Alle 16:32, venerd=EC 9 luglio 2004, Tsillas, Demetrios J ha scritto:
> I'm trying to map some kernel memory (allocated
> using kmalloc) to some user memory space (through
> an mmap file op).
> The guts of this operation is remap_page_range.
> Typically one has to convert the virtual address
> returned by kmalloc to a physical address using
> virt_to_phys. This is not present with UML.
> The closest I could find was uml_virt_to_phys.
> Any help appreciated. Please copy me directly
> via e-mail.
I use 2.6.7 and 2.4.24-1 to 2.4.26-2, and in all these (or almost all =
asm-um/io.h contains virt_to_phys. In i386 it is in asm-i386/io.h, so =
what did not you find? If you got a linking error it's clear you did not =
include the header (it's an inline, so the linker cannot know about it).
If the export for __pa() is missing (I don't think so), add it (to=20
arch/um/kernel/ksyms.c for 2.4) and post the patch.
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
Get latest updates about Open Source Projects, Conferences and News.