From: unruh on
On 2010-01-30, peter <cmk128(a)gmail.com> wrote:
> I want to display the /proc information in my http://peter-bochs.googlecode.com
>
> If /proc information is not stored in a fixed location, I probably
> unable to read them.

Of course it is stored in a fixed location. It is called /proc
Just read the contents of the various files. That is what they are there
for. They hand you the data on a platter and you say, "No No, I wanted to
make my own platter-- How can I eat if you just hand the food to me on
your platter?"

>
> thanks a lot
> from Peter
From: Bill Waddington on
On Sat, 30 Jan 2010 11:24:42 -0800 (PST), peter <cmk128(a)gmail.com>
wrote:

>I want to display the /proc information in my http://peter-bochs.googlecode.com
>
>If /proc information is not stored in a fixed location, I probably
>unable to read them.

It isn't _stored_ anywhere. It is _generated_ as you read it.

If you want to display it, just read it and display it.

I guess I don't understand what you want to accomplish :(

Bill
--
William D Waddington
william.waddington(a)beezmo.com
"Even bugs...are unexpected signposts on
the long road of creativity..." - Ken Burtch
From: John Hasler on
peter writes:
> I want to display the /proc information in my
> http://peter-bochs.googlecode.com

> If /proc information is not stored in a fixed location, I probably
> unable to read them.

It _is_ "stored in a fixed location": /proc. Just open the files and
read them.
--
John Hasler
jhasler(a)newsguy.com
Dancing Horse Hill
Elmwood, WI USA
From: J G Miller on
On Sat, 30 Jan 2010 18:35:12 -0600, John Hasler wrote:

> It _is_ "stored in a fixed location": /proc.

Umm yes, /proc is a location with a fixed name.

But is the location of /proc within the physical memory fixed?

If you look at Peter's Bochs web site you will see that he is a
developer of a memory debugging tool for Bochs, and thus this
question about /proc is I would suggest, a question about
where in memory is /proc located, especially in a virtual
machine emulating an i386 on the memory of another machine.

So perhaps the question comes down to, how does one locate
the absolution position of data for /proc in the memory
used by the system?
From: John Hasler on
J G Miller writes:
> So perhaps the question comes down to, how does one locate the
> absolution position of data for /proc in the memory used by the
> system?

procfs is a virtual filesystem: the data is assembled "on the fly" from
various kernel data structures when the files are read.

--
John Hasler
jhasler(a)newsguy.com
Dancing Horse Hill
Elmwood, WI USA