Re: [EXAMPLE-PATCH] /proc/config

Nicholas J. Leon (nicholas@binary9.net)
Sat, 30 May 1998 12:45:54 -0400 (EDT)


On Sat, 30 May 1998, Martin Mares wrote:

# > > doesn't eat up precious kilobytes of kernel space.
# > C'mon give the guy who implemented this a break.
# > FYI, on my .config
# > grep -v '^#' .config | gzip | wc -c
# > gives 483. Add a couples of bytes for the code that implements
# > /proc/config. And of course you could make it an option.
#
# I don't expect /proc/config to give _gzipped_ answer, so you either have
# to include ungzip code in the kernel or you cannot have the data compressed

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
apparently it relies on globals as opposed to passing arguments.

Does anyone want to give me a QUICK (1 line or 2) description on how to
utilize the gunzip function? Because I think I can reduce the kernel space
footprint to around 600bytes or so (which may actually make it feasible).

TIA!

.............................................................................
..nicholas j. leon..........mrnick.binary9.net.........nicholas@binary9.net..
.............................................................................

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