LinuxQuestions.org
Visit Jeremy's Blog.
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-26-2007, 12:08 AM   #1
rose_hatami
LQ Newbie
 
Registered: Nov 2007
Posts: 9

Rep: Reputation: 0
interrupts in linux.


I have a C code which is running in windows, now I want to change it that can be run in linux.
What should I do with the functions "setvect" and "getvect" which handle interrupts?
I thing Linux doesn't have such functions to work with interrupts in the way windows does, does it!
I'll really appreciate if u kindly help me on that.
 
Old 11-26-2007, 03:45 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
This sounds like an old DOS driver - Do you need to access the BIOS directly? You can only access a BIOS interrupt when in kernel mode in Linux. And then it is normally an ASM call.

What exactly does your code need to do on the Linux box?
 
Old 11-26-2007, 11:53 PM   #3
rose_hatami
LQ Newbie
 
Registered: Nov 2007
Posts: 9

Original Poster
Rep: Reputation: 0
in fact u'r right. it's a kind of driver for a special hardware. it is for communicating through E1 lne and also through HDLC. to be honest, it's all thing that i know. and i supposed to convert that code.
so, u mean the functions "sinaction" and friends or the functions "request_irq" & friends won't help?
 
  


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
DMA interrupts HokieRicky Programming 2 07-08-2004 05:28 PM
howto handle interrupts in linux cheema Programming 3 07-08-2004 02:44 AM
about interrupts eshwar_ind Programming 1 02-25-2004 01:38 AM
Lost interrupts ardvark Linux - Hardware 9 08-08-2003 01:04 AM
Interrupts rhcohen Programming 0 01-22-2001 03:30 PM


All times are GMT -5. The time now is 11:34 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