LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 02-03-2010, 08:46 AM   #1
Gourab Das
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Rep: Reputation: 0
How to attach a kernel module with kernel source code


Hi all,

I am using openSUSE.I have made a kernel module.Now I want to attach the source code of my module to the source code of the kernel.So, I want to know in which position can I attach my source code such that it will call my module.If we need to add my code in the Makefile then at which position I should attach my code.
Finally It would be very helpful if anyone please tell me step by step procedure of compiling that kernel source code.


Thanks to all in advance
 
Old 02-04-2010, 07:43 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
What does your module do ?

Have you successfully compiled your module through makefile ?

Have you inserted your module in kernel by insmod or modprobe ?
If so, what happened then ?
If not, why not ?

Last edited by TheIndependentAquarius; 02-04-2010 at 07:46 AM.
 
Old 02-04-2010, 08:19 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

You should read Documentation/kbuild/modules.txt in the kernel source directory

Regards
 
  


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
Nvidia Kernel Module & Kernel source KinnowGrower Linux - Desktop 2 09-29-2008 11:23 PM
Reload this Page Where is the kernel module source code directory? Unregistered Slackware 1 10-13-2007 11:06 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 09:21 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 12:19 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 10:31 AM


All times are GMT -5. The time now is 06:48 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration