LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-14-2009, 11:02 PM   #1
kurt2
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Question 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.
 
Old 07-15-2009, 10:33 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: back to Arch
Posts: 16,676

Rep: Reputation: 425Reputation: 425Reputation: 425Reputation: 425Reputation: 425
Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-15-2009, 09:56 PM   #3
sundialsvcs
Senior Member
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 3,685

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Function in kernel space called form user space.. Linux_Kid_ Programming 2 09-22-2009 04:34 AM
Accessing User Space Buffer directly in Kernel code akshaynm87 Linux - Kernel 2 06-29-2009 09:39 AM
what Kernel do if user call malloc() function in user space? rsyoung Linux - Newbie 1 06-20-2009 11:40 AM
what Kernel do if user call malloc() function in user space? rsyoung Linux - Kernel 2 06-18-2009 01:59 AM


All times are GMT -5. The time now is 03:22 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration