public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Will __pa(vmalloc()) ever work?
@ 2005-05-27 19:26 Timur Tabi
  2005-05-27 19:29 ` Christoph Hellwig
  2005-05-30  9:38 ` Gerd Knorr
  0 siblings, 2 replies; 11+ messages in thread
From: Timur Tabi @ 2005-05-27 19:26 UTC (permalink / raw)
  To: linux-kernel

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

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

end of thread, other threads:[~2005-05-31 20:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-27 19:26 Will __pa(vmalloc()) ever work? Timur Tabi
2005-05-27 19:29 ` Christoph Hellwig
2005-05-27 19:54   ` Timur Tabi
2005-05-27 20:31     ` Arnd Bergmann
2005-05-28 16:16   ` Russell King
2005-05-30  9:38 ` Gerd Knorr
2005-05-31 15:51   ` Timur Tabi
2005-05-31 16:13     ` Gerd Knorr
2005-05-31 18:59       ` Timur Tabi
2005-05-31 20:01         ` Russell King
2005-05-31 20:44         ` Brian Gerst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox