lkml.org 
[lkml]   [2003]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Creating a page struct for HIGHMEM pages
On Sun, Dec 07, 2003 at 07:56:17PM +0200, Amir Hermelin wrote:
> I may be missing something a little more basic: I have a contiguous physical
> memory area (IO memory), and I want to manage it with struct pages. If I'm
> to write to the page I need to kmap it, therefore (as I understand it) I
> need to zero the ->virtual field. What I don't understand is how, given
> the struct page I've allocated and filled out, is the page correlated with
> the correct physical memory. Where do I put the information that struct
> page X points to physical address Y, so that when I kmap(X) I get a virtual
> address pointing to Y?

You probably want ioremap(), not kmap().


-- wli
-
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-03-22 13:59    [W:0.050 / U:1.924 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site