Skip to contentSkip to conversation

user virtual address to physical address

DISCUSSION Fredrick 2 participants 2 messages May 9, 2012

lore
Share & tools
lore

Fredrick

author
#0 lore raw

Hi,

I need to convert a user virtual address to its corresponding physical address.
I know that if the virtual address is from kernel, we could use virt_to_phys.
Is there a similar helper function
to convert user virtual address.?

Thanks,
Fredrick

#1 lore raw
Quoted 10 lines · Fredrick

Hi,

I need to convert a user virtual address to its corresponding physical address.
I know that if the virtual address is from kernel, we could use virt_to_phys.
Is there a similar helper function
to convert user virtual address.?

Hi Fredrick,

Please elaborate the purpose,

User-space application allowed to have virtual address upto 3GB, assuming 1:3 address space split.
And its not mandatory for all user-space address to be valid and to have all user-space address to have a valid physical address mapping.

Thanks,
Chetan

Thanks,

Quoted 8 lines

Fredrick

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120509/6b7d4566/attachment.html