All of lore.kernel.org
 help / color / mirror / Atom feed
* user virtual address to physical address
@ 2012-05-09  0:10 Fredrick
  2012-05-09  3:30 ` Chetan Nanda
  0 siblings, 1 reply; 2+ messages in thread
From: Fredrick @ 2012-05-09  0:10 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* user virtual address to physical address
  2012-05-09  0:10 user virtual address to physical address Fredrick
@ 2012-05-09  3:30 ` Chetan Nanda
  0 siblings, 0 replies; 2+ messages in thread
From: Chetan Nanda @ 2012-05-09  3:30 UTC (permalink / raw)
  To: kernelnewbies

On Wed, May 9, 2012 at 5:40 AM, Fredrick <fjohnber@zoho.com> wrote:

> 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,
> 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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-09  3:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09  0:10 user virtual address to physical address Fredrick
2012-05-09  3:30 ` Chetan Nanda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.