LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-25-2009, 03:50 PM   #1
ddeeks
LQ Newbie
 
Registered: May 2009
Posts: 11

Rep: Reputation: 0
Linking in a LKM to user space in an Eclipse project build


I have written a PCI LKM device driver that compiles and loads correctly via #insmod libfoo.ko. When # dmesg | less is run I get good results and no errors in the log.

The LKM header file is visible in the eclipse workspace.

The question now becomes how do I attach (link) this loaded LKM in a eclipse project so that the LKM driver functions are visable?
 
Old 06-26-2009, 09:46 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,271

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
A (loaded) kernel module is an extension (a part) of the kernel. You can't link it to anything in userspace.

If you want to talk to it (from userspace) use /proc or (preferred these days) /sysfs
 
Old 06-29-2009, 02:06 PM   #3
ddeeks
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks for the reply, I'm writing a sysfs driver to access the LKM

Dan
 
  


Reply

Tags
build, eclipse, lkm, project


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
Setting Eclipse problem. I just can't build any project barbuceanu Programming 2 05-05-2008 01:29 PM
I Can't build any project with Eclipse barbuceanu Linux - Newbie 2 05-05-2008 01:28 PM
Can't build any project with Eclipse barbuceanu Linux - Software 2 05-05-2008 10:44 AM


All times are GMT -5. The time now is 09:11 AM.

Main Menu
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