LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-11-2011, 09:20 AM   #1
yakoda
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?

Thanks!
 
  


Reply


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 06:44 PM
Access kernel register from user application navvu_mom Linux - Software 0 05-27-2008 02:32 AM
application access somsahi Linux - Software 1 10-05-2006 01:58 PM
Application like M$ Access finrold Linux - Software 5 10-16-2003 09:11 PM
how to restrict access to one application only? randomx Linux - General 1 05-29-2003 03:32 PM


All times are GMT -5. The time now is 05:03 PM.

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