Results 1 to 1 of 1
I use different configurations of the same kernel (2.4). How can I add an information (e.g. string or int) to my kernel which my user space application will be able ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-11-2011 #1
- Join Date
- May 2011
How to access kernel config from application?
How can I add an information (e.g. string or int) to my kernel which my user space application will be able to get?
I tried to set EXTRAVERSION in the main Makefile of the kernel. I get it back using uname(). It works, but then my kernel module (char driver) is not able to be loaded in all the configurations (insmod fails with error: "kernel-module version mismatch"). I don't want to handle a different binary of my kernel module for each kernel config change.
I understand that EXTRAVERSION is not made for the use I did. What should I use instead to store my private config tracking?
Last edited by yakoda; 05-11-2011 at 09:46 AM.