LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Calling User-space program functions from Kernel modules (https://www.linuxquestions.org/questions/programming-9/calling-user-space-program-functions-from-kernel-modules-298008/)

shivanu 03-05-2005 12:39 PM

Calling User-space program functions from Kernel modules
 
Hi,
I want to call some user-space program functions from the kernel module that i am trying to change. I cannot copy the code of the user-space program in the kernel module as i do not have the required libraries for them. So, I was wondering if there is some way of me to be able to call a user-space program function from the kernel module such that I call the user-space function and then it returns back to the kernel module after execution of that part.

Is there some way to do this? Or is there someway to easily change the user-space code to kernel space. In the user space code I am reading files from the memory, and then acting on them, etc.

Thanks
Shivanu

Mara 03-05-2005 02:11 PM

There's no general way. Kernel modules can use only a limited number of functions, normal program wants usually too much. If you can, try to use a diffeent method, rewrite the function in such a way that it'll do what you want it to do and stil be simple (and work in the kernel).


All times are GMT -5. The time now is 05:57 AM.