LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   how to call socket prog code written in user space from kernel space???HELP (http://www.linuxquestions.org/questions/programming-9/how-to-call-socket-prog-code-written-in-user-space-from-kernel-space-help-740135/)

kurt2 07-14-2009 11:02 PM

how to call socket prog code written in user space from kernel space???HELP
 
Can any 1 tell me how to use execv from kernel space to call a user space program writtenfor socket prog.

I tried to write code for socket in kernel but its not working.

Any help about socket code in kernel is also needed.

Thankx.

pixellany 07-15-2009 10:33 AM

Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.

sundialsvcs 07-15-2009 09:56 PM

Kernel-space should not "call" user-space: the code there cannot be trusted.

Normally, a user-space daemon program is started first, and it connects to the kernel-code, which sends it "notifications." The user-space daemon then decides what to do. As a typical example, look at the design of the hotplug facility.


All times are GMT -5. The time now is 09:42 PM.