RE: Figuring out physical memory regions from a kernel module

From: Hanson, Jonathan M
Date: Wed Dec 08 2004 - 13:18:30 EST




-----Original Message-----
From: Arjan van de Ven [mailto:arjan@xxxxxxxxxxxxx]
Sent: Wednesday, December 08, 2004 10:50 AM
To: Hanson, Jonathan M
Cc: linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: Figuring out physical memory regions from a kernel module

On Wed, 2004-12-08 at 10:44 -0700, Hanson, Jonathan M wrote:
> Is there a reliable way to tell from a kernel module (currently
> written for 2.4 but will need to work under 2.6 in the future) which
> regions of physical memory are actually available for the kernel and
> processes to use? For example, the following command tells me the
> regions of physical memory that are available to use:


ehhh what do you need it for???
without knowing that it's hard to give recommendations

[Jon M. Hanson] I'm writing a kernel module that dumps out the contents
of physical memory and the state of the CPU(s) based on an event. I
don't want to traverse memory that isn't actually used as system RAM
(like the 1 M hole, devices, etc.).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/