LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2003, 08:00 PM   #1
bruce1271
Member
 
Registered: Apr 2003
Location: Dallas, TX
Posts: 122

Rep: Reputation: 15
Kernel Question about "version support"


I have a few questions about Kernels.

1) I have been using Redhats Automatic update to get updated Kernels on my system automatically. Where can I find the .config file used to build this kernel?

2) How do I diasble kernel "version support" for loading modules.
I have a few modules I compiled myself and dont want to re-compile these every time I install a new Kernel

3) One more thing..I am trying to write my own module and have started with the basics..I have "#include <linux/module.h>" . Where exactly is the module.h being pulled from? I have ~ 5 source trees from upgrades to kernels. Which one is it using?


Thanks
 
Old 06-02-2003, 06:32 AM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
1.) Don't use red hat so can't help but should be in the /usr/src/linux directory.

2.) When you compile a kernel, in the 'loadable module support' bit of the config you can disable this feature.

3.) Most probably from /usr/src/linux it should be a symlink to the correct directory in /usr/src/ Try ls -l to see which one its pointing to.

HTH

Alex
 
Old 06-02-2003, 09:10 AM   #3
bruce1271
Member
 
Registered: Apr 2003
Location: Dallas, TX
Posts: 122

Original Poster
Rep: Reputation: 15
1) Ok, so where would be the .config file be from a normal install of the kernel?

2)Yeah, I found that out going throught the doc.

3) I looked in /usr/src/linux and lnix is linked to my current kernel. #include <linux/module.h> is pulling from a kernel that is 6 months old and not even in the /usr/src directory. Any way to hard code my module to point to the latest kernel?

thanks
 
Old 06-02-2003, 09:31 AM   #4
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
3.) I think you can just give the full path to the relevant file but im not that good at programming
 
  


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
question about "sound support" and editing /etc/modules.conf 1sciroccofahrer Linux - Newbie 1 04-20-2005 03:31 PM
Redhat 9 recompile kernel for "module" support? realized Linux - Newbie 2 10-11-2004 03:42 AM
"Your version of Microsoft Windows(tm) does not support Call of Duty" nexx_au Linux - Games 5 07-12-2004 08:59 AM
Error "Kernel version mismatch" when nic driver will be loaded grubjo Linux - Networking 1 10-03-2003 04:12 AM
Compiling a kernel module results in "insmod" version mvega Linux - General 2 07-30-2003 09:03 AM


All times are GMT -5. The time now is 06:09 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