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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-13-2004, 12:54 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2003
Distribution: slack/deb/rhel/fc
Posts: 4
Rep:
|
accessing functions in kernel modules
Hi, I've written a module that has some kernel space functions that I'd like to acces using a user space program. Anyone have any experience doing this? I've tried using EXPORT_SYMBOL and extern but that doesn't work, actually I don't think this is how its done anyways. The module sets some parameter that I'd like to control using the program.
Thanks in advance
|
|
|
|
12-13-2004, 02:41 PM
|
#2
|
|
Member
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292
Rep:
|
short answer, you dont. you can use a device file or something in /proc though.
|
|
|
|
12-13-2004, 04:25 PM
|
#3
|
|
LQ Newbie
Registered: Sep 2003
Distribution: slack/deb/rhel/fc
Posts: 4
Original Poster
Rep:
|
Quote:
Originally posted by m00t00
short answer, you dont. you can use a device file or something in /proc though.
|
Ok then, would you have any pointers for doing this via /proc or device file? I think /proc would probably be better, what I'm interested in is changing a parameter to invoke a kernel space function that would apply that parameter.
|
|
|
|
12-14-2004, 12:39 AM
|
#4
|
|
Member
Registered: Dec 2002
Location: Russia
Distribution: ASP linux
Posts: 94
Rep:
|
Have you read this great book? Try it, I think it can help.
|
|
|
|
12-14-2004, 05:46 AM
|
#5
|
|
LQ Newbie
Registered: Jun 2003
Posts: 14
Rep:
|
use open(),write(),read() system call
|
|
|
|
12-14-2004, 09:42 AM
|
#6
|
|
Member
Registered: Sep 2004
Distribution: Slackware 10, Gentoo
Posts: 292
Rep:
|
Quote:
Originally posted by mayur
use open(),write(),read() system call
|
uh... no.
theyre not ordinary files.
check here , theres a chapter or two on it (chapters 5-7)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:37 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|