Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-25-2007, 11:08 PM   #1
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, 02:45 PM   #2
jim mcnamara
Registered: May 2002
Posts: 964

Rep: Reputation: 36
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, 10:53 PM   #3
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?


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

All times are GMT -5. The time now is 11:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration