LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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