Re: [RFC] Provide in-kernel headers for making it easy to extend the kernel

From: Greg KH
Date: Sat Jan 19 2019 - 05:36:10 EST


On Sat, Jan 19, 2019 at 02:28:00AM -0800, Christoph Hellwig wrote:
> This seems like a pretty horrible idea and waste of kernel memory.

It's only a waste if you want it to be a waste, i.e. if you load the
kernel module.

This really isn't any different from how /proc/config.gz works.

> Just add support to kbuild to store a compressed archive in initramfs
> and unpack it in the right place.

I think the issue is that some devices do not use initramfs, or switch
away from it after init happens or something like that. Joel has all of
the looney details that he can provide.

thanks,

greg k-h