Re: Creating a page struct for HIGHMEM pages

From: William Lee Irwin III
Date: Sun Dec 07 2003 - 13:01:27 EST

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@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at