LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-10-2012, 02:20 PM   #1
tinkle
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 12:25 PM.
 
  


Reply



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 01:10 PM
Possible LKM Trojan install kernel 2.6.0 cxel91a Linux - Security 8 12-13-2010 05:19 PM
How to use gdb to trace the glibc functions and linux system calls? HolyJoe Programming 8 12-29-2009 05: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 02:20 PM
System calls/functions to execute a file within a program psandeepnair1985 Programming 1 05-02-2007 02:37 AM

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

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

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