Messages in this thread | | | From | "Amir Hermelin" <> | Subject | RE: Creating a page struct for HIGHMEM pages | Date | Sun, 7 Dec 2003 20:05:39 +0200 |
| |
Yes, I've tried ioremap (and placed the address in the ->virtual field), but had problems with pre-written code that used kmap. So, basically, what you're saying is that I must change my code that uses kmap, or alternatively, allocated page* below the highmem_start_page address. Is this correct?
-----Original Message----- From: William Lee Irwin III [mailto:wli@holomorphy.com] Sent: Sunday, December 07, 2003 7:59 PM To: Amir Hermelin Cc: linux-kernel@vger.kernel.org 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/
| |