LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-22-2001, 02:30 PM   #1
rhcohen
LQ Newbie
 
Registered: Jan 2001
Posts: 1

Rep: Reputation: 0

I am installing interrupts in a device driver. The ISR schedules a task in a task queue. From that task I want a callback to a user function. Since the driver and task are running in kernel mode how can they call a function running in user space?
 
Old 12-20-2017, 04:45 AM   #2
theheapWalker
LQ Newbie
 
Registered: Dec 2017
Posts: 21

Rep: Reputation: Disabled
looks like you could do with a quick read through operating systems: internals and design principles by William Stallings. There might be something in it about Unix. I was thinking of reading it myself, it might not be in print anymore.

I hope this post is of help to some-one. considering the threads age.
 
Old 12-20-2017, 05:12 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Yet more evidence old threads should be locked.

jeremy ?.
 
Old 12-21-2017, 07:52 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
But it's kinda disappointing that this "necro-post" never did get an answer, way back then. It's an interesting question with a not-quite trivial answer that I won't go into now.
 
1 members found this post helpful.
Old 12-21-2017, 11:17 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
There are good reasons to reply to old threads with new information. "Read a book that I haven't read myself and that I don't know is even available anymore" is not one of them.

Last edited by dugan; 12-21-2017 at 11:19 AM.
 
1 members found this post helpful.
Old 12-21-2017, 11:25 AM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,852
Blog Entries: 1

Rep: Reputation: 1868Reputation: 1868Reputation: 1868Reputation: 1868Reputation: 1868Reputation: 1868Reputation: 1868Reputation: 1868Reputation: 1868Reputation: 1868Reputation: 1868
Nonetheless, it would be good to know what platform the OP had in mind.
 
  


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
BIOS Interrupts Orkie Programming 3 04-22-2005 09:23 AM
interrupts registrering sdimag Programming 0 11-02-2004 03:40 AM
about interrupts eshwar_ind Programming 1 02-25-2004 12:38 AM
High interrupts dunkyb Linux - General 4 12-29-2003 08:04 PM
Lost interrupts ardvark Linux - Hardware 9 08-08-2003 12:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration