RE: How to get a "struct page *" from ioremap() in 2.6?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




-----Original Message-----
From: Tonko A. Ljubicic [mailto:tonko@xxxxxxx]
Sent: Thursday, November 18, 2004 3:17 AM
To: kernelnewbies@xxxxxxxxxxxx
Subject: How to get a "struct page *" from ioremap() in 2.6?



>I have external (I/O-like) memory on my i386 linux 2.6.9 box and I can use
>it through a device driver using the standard "ioremap" call. This all
>works fine...

>What I need is a "struct page *" which corresponds to this memory and this
>seems to be a problem. 

	mem_map array is created during start up based on the number of
'physical'
pages of memory available. ie each entry of mem_map represents a physical
page.

Why can't you use the virtual address returned by ioremap ?

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux