[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 5 May 2008 12:50:35 -0700
From: Arjan van de Ven <arjan@...radead.org>
To: "Timur Alperovich" <timur.alperovich@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: exported version of page_is_ram?
On Mon, 5 May 2008 13:58:59 -0400
"Timur Alperovich" <timur.alperovich@...il.com> wrote:
> Hi,
>
> I need to check if a given page is in ram or not. It seems that
> page_is_ram does the trick, but since it's not exported, I end up with
> "unknown symbol" errors when I try to insert the module. I'm trying to
> hash the contents of every page in physical memory, and iterating
> through pages from 0 to num_physpages, while checking if they are
> actually in ram seemed reasonable. Is there a better way to do it or
> is there another function rather than page_is_ram that can do the
> trick?
sounds like the right way is to make a "for each ram page" function
in the core, export_symbol_gpl that so that you can then use that...
We could even make it scale and numa friendly in the core that way.
Do you have a url for your code?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists