LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2004, 08:54 PM   #1
lokutas
LQ Newbie
 
Registered: Apr 2004
Location: Mexico --- Arriba!
Distribution: MDK 10.0
Posts: 1

Rep: Reputation: 0
Kernel module programming



I've been beating a 10 line module program and haven't been able to make it work... I've been doing it using Kdevelop 3.0 over mdk10.0 with Kernel 2.6.3, I have advanced with a couple of compile errors by fixing compiler directives (#define's) but still have a long way to go, I will appreciate if somebody could point me to a cookbook URL or provide me of a simple example program that I can work with... I guess I might also need to tweak Kdevelop some what to make it run or compile my modules, can somebody please comment on this...

Thank you all very much,
Lokutas
 
Old 04-26-2004, 09:29 PM   #2
zekko
Member
 
Registered: Aug 2003
Location: Canada
Distribution: Slackware, debian
Posts: 76

Rep: Reputation: 15
Have you read this?
http://www.tldp.org/LDP/lkmpg/index.html
 
Old 04-27-2004, 02:26 AM   #3
Tih8710
Member
 
Registered: Jan 2003
Location: Finland
Distribution: ElementaryOS Freya as main, every other ubuntu-based as testing
Posts: 124

Rep: Reputation: 15
Pretty good, but unfortunately old information. mdk10 has kernel 2.6.3, that has a few(?) changes in LKM programming, such as MODULE_PARM macro, that now is module_param() , and needs a header to be included...

Read that anyway, but take also a good look at:

http://lwn.net/Articles/driver-porting/
 
  


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
experimenting with kernel module programming bravetanveer Linux - General 0 12-30-2004 03:29 AM
Kernel Module Programming in 2.6 KneeLess Programming 3 04-13-2004 02:27 PM
Kernel Module programming Config Programming 2 03-24-2004 04:48 PM
kernel module programming shellcode Programming 1 02-05-2004 11:43 PM
Kernel Module Programming Thomas.P Programming 1 11-10-2001 10:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:10 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
Open Source Consulting | Domain Registration