lkml.org 
[lkml]   [2005]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectWill __pa(vmalloc()) ever work?
I have a driver that calls __pa() on an address obtained via vmalloc().  This is not 
supposed to work, and yet oddly it appears to. Is there a possibility, even a remote one,
that __pa() will return the correct physical address for a buffer returned by the
vmalloc() function?

Also, does the pgd/pmd/pte page-table walking work on addresses returned by kmalloc(), or
do I have to use __pa() to get the physical address?

--
Timur Tabi
Staff Software Engineer
timur.tabi@ammasso.com

One thing a Southern boy will never say is,
"I don't think duct tape will fix it."
-- Ed Smylie, NASA engineer for Apollo 13
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-27 21:29    [W:0.088 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site