Messages in this thread | ![/](/images/icornerl.gif) | | Date | Sun, 7 Dec 2003 09:59:15 -0800 | From | William Lee Irwin III <> | Subject | Re: 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/
| ![\](/images/icornerr.gif) |