LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
Search this Thread
Old 11-07-2002, 09:32 PM   #1
pot_po
LQ Newbie
 
Registered: Oct 2002
Posts: 2

Rep: Reputation: 0
can interrupt handler call user space function?


I am writing an interrupt handler in kernel space. I have been told that a handler is not able to access user space...so is there anyway that i can "personalize" a handler routine from user space?

to be specific, I want to supply a pointer to a user space function, called "my_isr", to the handler, and let the handler call my my_isr once interrupt arrives. The fact I observe is that I passed the pointer successfully (by checking the pointer value the handler get and the actual address my_isr...they match perfectly) but once interrupt arrives, segmentation fault results and I need to reboot. Is it because my handler is calling a function from user space and it is forbidden by OS?
 
  


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
Linux Interrupt Handler lucky6969b Linux - Software 1 12-01-2005 11:55 AM
making sys call ex:insmod,rmmod from function in user module shashishankar_h Linux - General 1 09-01-2005 12:36 AM
printk in the interrupt handler lordofring Programming 3 08-23-2005 08:00 PM
<0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing mrb Linux - Newbie 2 01-09-2005 09:47 AM
Why this interrupt handler does not work? opereira Programming 1 03-04-2004 01:37 PM


All times are GMT -5. The time now is 03:45 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 Google+: linuxquestions
Open Source Consulting | Domain Registration