Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-11-2011, 08:20 AM   #1
LQ Newbie
Registered: May 2011
Posts: 1

Rep: Reputation: 0
How to access kernel tag 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?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need assistance with shell script - replace a string with a start tag and end tag SupermanInNY Programming 18 01-02-2010 05:44 PM
Access kernel register from user application navvu_mom Linux - Software 0 05-27-2008 01:32 AM
application access somsahi Linux - Software 1 10-05-2006 12:58 PM
Application like M$ Access finrold Linux - Software 5 10-16-2003 08:11 PM
how to restrict access to one application only? randomx Linux - General 1 05-29-2003 02:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration