Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    1

    How to access kernel config from application?


    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 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?

    Thanks!
    Last edited by yakoda; 05-11-2011 at 09:46 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •