Linux Headers May Soon Be Available In-Kernel Via /proc
In making it easier to manage and access the Linux kernel headers for a particular kernel build, Google engineers working on Android are proposing an in-kernel solution for mainline where a compressed archive of a given kernel's headers could be accessible via /proc.
Last week the "request for comments" were issued on the in-kernel headers solution in order to make it easier to build kernel modules, run eBPG programs, handle other tracing programs, and similar purposes where you need access to the kernel header files. Accessing kernel header files from Android and some other embedded platforms can be a challenge since they don't generally ship on the device file-system among other issues.
The IKHEADERS_PROC solution provides a module that can be loaded/unloaded on demand from where /proc/kheaders.tgz would then be exposed as a compressed archive of the running kernel's header files. This addresses the needs of the Android developers, makes it easier for others to worry less about verifying they have the current kernel's header files, and is offered up compressed in order to save storage space.
The proposal and basic patch can be found on the kernel mailing list. Not all kernel developers commenting on the patch find this to be useful, but given that Google develoeprs are involved and Torvalds' second in command Greg KH has already backed this approach, it could soon mainline potentially as soon as Linux 5.1.
Last week the "request for comments" were issued on the in-kernel headers solution in order to make it easier to build kernel modules, run eBPG programs, handle other tracing programs, and similar purposes where you need access to the kernel header files. Accessing kernel header files from Android and some other embedded platforms can be a challenge since they don't generally ship on the device file-system among other issues.
The IKHEADERS_PROC solution provides a module that can be loaded/unloaded on demand from where /proc/kheaders.tgz would then be exposed as a compressed archive of the running kernel's header files. This addresses the needs of the Android developers, makes it easier for others to worry less about verifying they have the current kernel's header files, and is offered up compressed in order to save storage space.
The proposal and basic patch can be found on the kernel mailing list. Not all kernel developers commenting on the patch find this to be useful, but given that Google develoeprs are involved and Torvalds' second in command Greg KH has already backed this approach, it could soon mainline potentially as soon as Linux 5.1.
39 Comments