LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-22-2009, 02:43 AM   #1
ravishankar.g
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Do we have any chance of calling user space callback function from kernel space?


I am writing device driver in which i have to call callback function from kernel space, which are saving my data. But the callback functions are in userspace. While accessing them i am getting segmentation fault.

Plz help me to complete this action.
 
Old 09-22-2009, 07:14 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by ravishankar.g View Post
I am writing device driver in which i have to call callback function from kernel space, which are saving my data. But the callback functions are in userspace. While accessing them i am getting segmentation fault.

Plz help me to complete this action.
Sure, OK. Here's the solution: "Don't call user space from your kernel driver."

Don't you understand what this would mean? It would allow a user to compromise the security of the kernel. Linux would become Windows. (shudder)

The obvious solution is not to write this as a kernel driver.
 
  


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


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
what Kernel do if user call malloc() function in user space? rsyoung Linux - Newbie 1 06-20-2009 11:40 AM
callback or notification from kernel to user space yhus Programming 5 09-18-2005 09:41 PM
Calling User-space program functions from Kernel modules shivanu Programming 1 03-05-2005 02:11 PM


All times are GMT -5. The time now is 09:41 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration