Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-14-2008, 07:47 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 8

Rep: Reputation: 0
How do i run exported function from another LKM?

I am writing 2 LKMs (there should be 2,dont ask . One of them should be able to call another's function. I know that the LKM exports its function to symbol table, but I have no idea how to call it (besides parsing /proc/kallsyms ).
The kernel is 2.6 , so there is no publicly exported table.
Thank you.

Simple version:
LKM1 - has function yohoho();

LKM1 loads
LKM2 loads
How to make LKM2 call exported function yohoho()?



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
LKM talking to another LKM? Ljunge Programming 4 11-13-2007 02:29 PM
run c function in the background schneidz Programming 4 09-07-2007 08:29 AM
problem with inet_ntoa function in LKM anandkj Linux - General 1 07-05-2007 10:20 AM
Run restore on boot & LKM rootkits mazinoz Linux - Security 6 07-26-2006 07:24 PM
How do I run a function within a function arguement? C/C++ RHLinuxGUY Programming 12 05-19-2006 03:29 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:11 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