* Getting physical address of memory allocated by vmalloc()
@ 2011-10-21 1:31 Jacky Lam
0 siblings, 0 replies; 2+ messages in thread
From: Jacky Lam @ 2011-10-21 1:31 UTC (permalink / raw)
To: kernelnewbies
Hi,
Is there any generic way to get the physical address of memory
(first page) allocated by vmalloc()?
Thanks a lot.
Jacky
^ permalink raw reply [flat|nested] 2+ messages in thread
* Getting physical address of memory allocated by vmalloc()
@ 2011-10-21 7:53 Dave Hylands
0 siblings, 0 replies; 2+ messages in thread
From: Dave Hylands @ 2011-10-21 7:53 UTC (permalink / raw)
To: kernelnewbies
Hi Jacky,
On Oct 20, 2011 6:32 PM, "Jacky Lam" <lamshuyin@gmail.com> wrote:
>
> Hi,
>
> Is there any generic way to get the physical address of memory
> (first page) allocated by vmalloc()?
PFN_PHYS( vmalloc_to_pfn( address ))
--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111021/2ca4a125/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-21 7:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-21 1:31 Getting physical address of memory allocated by vmalloc() Jacky Lam
-- strict thread matches above, loose matches on Subject: below --
2011-10-21 7:53 Dave Hylands
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.