From: Arjan van de Ven <arjan@infradead.org>
To: "Timur Alperovich" <timur.alperovich@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: exported version of page_is_ram?
Date: Mon, 5 May 2008 12:50:35 -0700 [thread overview]
Message-ID: <20080505125035.719feaa5@infradead.org> (raw)
In-Reply-To: <52950c3f0805051058t5d3447c2r3ae8e77cf0166b00@mail.gmail.com>
On Mon, 5 May 2008 13:58:59 -0400
"Timur Alperovich" <timur.alperovich@gmail.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?
next prev parent reply other threads:[~2008-05-05 19:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 17:58 exported version of page_is_ram? Timur Alperovich
2008-05-05 19:50 ` Arjan van de Ven [this message]
2008-05-05 21:13 ` Timur Alperovich
2008-05-06 13:56 ` Arjan van de Ven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080505125035.719feaa5@infradead.org \
--to=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=timur.alperovich@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox