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

Markus Gutschke (gutschk@uni-muenster.de)
Wed, 21 Feb 1996 21:42:24 +0100


-----BEGIN PGP SIGNED MESSAGE-----

Alan Cox writes:
> > > I think the only good format for things that might be extended or
> > > modified over time is a "tagged" format. The BOOTP extension format
> > > is tagged, but binary. They have length bytes, so they don't need
> > > separator bytes.
>
> I'll throw another requirement in here. For many networking applications I
> need to go to a fixed size record scheme for speed.

Is this requirement neccessary for the kernel or for user-level
programs? The file format that I proposed is very simple/fast for
creating (this is, what the kernel would usually do), but it
admittedly requires some extra parsing for evaluating (that is what
user level programs would usually do). If you need to do this fast,
you could try to go with flex/yacc, which often gives acceptable
performance. If this is not an option, and you insist on having fixed
width records, we will have to come up with some extensions to the file
format --- even though, that will either limit versatility or require
us to accept special cased file-formats.

Markus

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.3, an Emacs/PGP interface

iQCVAgUBMSuDphqJqDLErwMxAQEQ+QP/SuyRgbBIyC+rRPtJX7cIuTke9+YH+snE
eiVxv4rOLBH1YiDu6QGnOdYfpkH+8Pnz67Xaf+JUJGjpROnX3YCc/GCkEFfR0qUt
jNbRw27Q0cNgN3mYV6f8+BTKUJ5B0GfPG1s5/rG6CP5ss+BgP34+WAUGDIcnnqZi
z5q5xWMKDwQ=
=j7CZ
-----END PGP SIGNATURE-----