linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* /proc & xml data
@ 2000-10-30  2:21 Joe
  2000-10-30  6:54 ` Eric W. Biederman
  2000-10-30 23:20 ` Olaf Titz
  0 siblings, 2 replies; 4+ messages in thread
From: Joe @ 2000-10-30  2:21 UTC (permalink / raw)
  To: linux-kernel

I remember hearing about various debates about the /proc structure.  I
was wondering if anyone had ever considered storing some of the data in
xml format rather than its current format?  Things like /proc/meminfo
and cpuinfo may work good in this format as then it would be easy to
write a generic xml parser that could then be used to parse any of the
data. "MemTotal:  %8lu kB\n"

In the case of the meminfo it would be a matter of changing the lines in
fs/proc/array.c  function get_meminfo(char * buffer) from

"MemTotal:  %8lu kB\n"

to something like

"<memtotal>%8lu kB</memtotal>\n"



Joe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /proc & xml data
  2000-10-30  2:21 /proc & xml data Joe
@ 2000-10-30  6:54 ` Eric W. Biederman
  2000-10-30 12:33   ` Moritz Schulte
  2000-10-30 23:20 ` Olaf Titz
  1 sibling, 1 reply; 4+ messages in thread
From: Eric W. Biederman @ 2000-10-30  6:54 UTC (permalink / raw)
  To: joeja; +Cc: linux-kernel

Joe <joeja@mindspring.com> writes:

> I remember hearing about various debates about the /proc structure.  I
> was wondering if anyone had ever considered storing some of the data in
> xml format rather than its current format?  Things like /proc/meminfo
> and cpuinfo may work good in this format as then it would be easy to
> write a generic xml parser that could then be used to parse any of the
> data. "MemTotal:  %8lu kB\n"
> 
> In the case of the meminfo it would be a matter of changing the lines in
> fs/proc/array.c  function get_meminfo(char * buffer) from
> 
> "MemTotal:  %8lu kB\n"
> 
> to something like
> 
> "<memtotal>%8lu kB</memtotal>\n"

The general consensus is that if we have a major reorganization, in proc
the rule will be one value per file.  And let directories do the grouping.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /proc & xml data
  2000-10-30  6:54 ` Eric W. Biederman
@ 2000-10-30 12:33   ` Moritz Schulte
  0 siblings, 0 replies; 4+ messages in thread
From: Moritz Schulte @ 2000-10-30 12:33 UTC (permalink / raw)
  To: linux-kernel

ebiederm@xmission.com (Eric W. Biederman) writes:

> The general consensus is that if we have a major reorganization, in proc
> the rule will be one value per file.  And let directories do the grouping.

IIRC some time ago somebody suggested to rename 'proc' to something
like 'sys' or 'system', because it contains so many sytem information,
not only about processes; or extract all non-process-information from
proc to sys. Will this, or something like that, eventually be done
while the reorganization?

	moritz
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /proc & xml data
  2000-10-30  2:21 /proc & xml data Joe
  2000-10-30  6:54 ` Eric W. Biederman
@ 2000-10-30 23:20 ` Olaf Titz
  1 sibling, 0 replies; 4+ messages in thread
From: Olaf Titz @ 2000-10-30 23:20 UTC (permalink / raw)
  To: linux-kernel

> "MemTotal:  %8lu kB\n"
> to something like
> "<memtotal>%8lu kB</memtotal>\n"

The latter form offers no significant advantage over the former at
all - there is nothing that can be expressed as
 <name>value</name>
which can't also be expressed as
 name: value
or
 name=value
and the latter format is significantly easier to parse.

The only situation where XML really would be useful would be
some need of grouping, and this is done in /proc using directories.
(Which are also much easier to parse using existing standard tools.)

Olaf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-10-30 23:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-30  2:21 /proc & xml data Joe
2000-10-30  6:54 ` Eric W. Biederman
2000-10-30 12:33   ` Moritz Schulte
2000-10-30 23:20 ` Olaf Titz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).