Re: [EXAMPLE-PATCH] /proc/config

Roderich Schupp (rsch@ExperTeam.de)
Sun, 31 May 1998 12:58:48 +0200


Nicholas J. Leon said:
> Well, there is ~/lib/inflate.c (gunzip()). I (the author) am
> attempting right now to figure out to how hook into it. It's a bit
> confusing because
It's probably not meant to be called as a library function.
E.g. it's used by the ramdisk driver (drivers/block/rd.c) which
textually #include's lib/inflate.c.

Martin Mares said:
> Remember that lib/inflate.c gets linked only if some kernel module
> really needs it which doesn't happen for standard kernel.
Well, not exactly, see above (and I think the initial ramdisk is fairly
common, otherwise I would have to make a separate kernel just to
put in onto a boot/root rescue disk set). However, even if you have
the ramdisk, the inflate code in there is unusable outside the driver
(because it contains only static functions).
BTW, the ramdisk driver has most of its functions marked __initfunc
(to be released after booting). But the inflate functions are
not! Here's an opportunity to shave off some bytes (estimated
at almost 7K).
Anyway, I like the idea of /proc/config.gz (i.e. deliver the information
gzipped). If you're pager is set up correctly you simply do a
less /proc/config.gz
and even think about it.
Cheers, Roderich

--
           Just remember, wherever you go, there you are.
                          -- Buckaroo Bonzai
Roderich Schupp                 mailto:rsch@ExperTeam.de
ExperTeam GmbH                  http://www.experteam.de/
Munich, Germany                 linux:2.1.103

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu