Re: PROPOSAL: /proc standards (was dot-proc interface [was: /proc

Albert D. Cahalan
2001-11-08T00:48:44Z

Alex Bligh - linux writes:

> sure it's easier to strip out a spurious 'kb' that
> gets added after a number, than to deal with (say)
> an extra inserted DWORD with no version traching.

Design the kernel to make doing this difficult.
Define some offsets as follows:

#define FOO_PID 0
#define FOO_PPID 1

Now, how is anyone going to create "an extra inserted DWORD"
between those? They'd need to renumber FOO_PPID and any other
values that come after it.

The "DWORD" idea is messed up too BTW. Use __u64 everywhere.