Review your favorite Linux distribution.
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 11-10-2012, 03:20 PM   #1
LQ Newbie
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
supporting functions calls to lkm within kernel

i have a bunch of functions within my custom loadable module which i insert into kernel using insmod, at runtime.
i need to call these functions from within the kernel. I am passing a custom flag with the system call, if this flag is set, only then the kernel is supposed to make the custom function calls of my LKM.
However, i know this would give me kernel compilation errors, since the kernel functions wont be able to find my custom functions.
Is there a way to go around this ?
i know one way is to move my LKM into the kernel. but i need to play around with my custom LKM and insert/remove it multiple times. Is there a way i could avoid the kernel compilation everytime.

Any help/feedback on this will be very much appreciated.

Last edited by tinkle; 11-11-2012 at 01:25 PM.


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
[SOLVED] LKM for multiple kernel versions yaplej Linux - Kernel 1 01-27-2012 02:10 PM
Possible LKM Trojan install kernel 2.6.0 cxel91a Linux - Security 8 12-13-2010 06:19 PM
How to use gdb to trace the glibc functions and linux system calls? HolyJoe Programming 8 12-29-2009 06:58 PM
LKM in 2.6 w/o the kernel source to intercept the IP packet and process in kernel sp csvk Linux - Networking 0 10-12-2007 03:20 PM
System calls/functions to execute a file within a program psandeepnair1985 Programming 1 05-02-2007 03:37 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:00 AM.

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