Re: Will __pa(vmalloc()) ever work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 27, 2005 at 02:26:36PM -0500, Timur Tabi wrote:
> 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?

It will return the correct physical address for the start of the buffer.
But given that vmalloc is a non-contingous allocator that's pretty useless.

As are physical addresses for anything but low-level architecture code.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux