Re: Tagged files in /proc (Was: Re: (Fwd) Re: /proc/apm and power

Bernd Eckenfels (ukd1@rzstud1.rz.uni-karlsruhe.de)
23 Feb 1996 15:54:49 GMT


Markus Gutschke (gutschk@uni-muenster.de) wrote:
> Admittedly, this makes parsing the files a little more difficult.

And the generation will get nearly impossible for the Kernel.

> As
> this has to be done by user level programs only (I do not think, that
> the kernel has to do any parsing of its own files), this should not be
> that much of a problem. I am currently not aware of programs that are
> *this* timing critical when accessing files in the /proc
> hierarchy.

They are. You dont want to wait 5minutes for ps to parse a few 100 /proc
files. And you dont want gated to sleep a few seconds only to read a 40k
long routing table.

> These programs can always resort to flex/yacc which makes
> parsing very straight-forward and is usually quite fast.

*yuck* Compared to index() or strtok flex is notvery fast.

Gruss
Bernd

-- 
  (OO)      -- Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de --
 ( .. )  ecki@lina.{inka.de,ka.sub.org}  http://home.pages.de/~eckes/
  o--o     *plush*  2048/93600EFD  eckes@irc  +4972573817  *plush*
(O____O)       If privacy is outlawed only Outlaws have privacy