Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-03-2010, 07: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, 06:43 AM   #2
Senior Member
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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 06:46 AM.
Old 02-04-2010, 07:19 AM   #3
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,454

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469

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



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 10:23 PM
Reload this Page Where is the kernel module source code directory? Unregistered Slackware 1 10-13-2007 10: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 08:21 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM

All times are GMT -5. The time now is 02:15 PM.

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