lkml.org 
[lkml]   [1998]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: virt_to_bus and >1G of memory (was MAX_DMA_ADDRESS ...)


On Fri, 13 Nov 1998, Jamie Lokier wrote:
>
> One thing I've seen in some drivers is that virt_to_bus doesn't work on
> a user-space address, _or_ an address in a module.

It will never work. It's not supposed to. Anybody trying to do that is
buggy.

The "virt_to_phys()" and "virt_to_bus()" things are _only_ supposed to
work on normal kernel mappings, the kind of mappings you get from
"get_free_pages()" etc. Assuming anything else is just stupid, because it
assumes a level of complexity that I never want to see.

Linus


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.056 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site