Questions tagged [irq]

An interrupt request is a hardware signal sent to the processor that temporarily stops a running program and allows to handle a hardware event.

In an IBM PC compatible personal computer, an interrupt request (or IRQ) is a hardware signal sent to the processor that temporarily stops a running program and allows a special program, an interrupt handler, to run instead. Interrupts are used to handle such events as data receipt from a modem or network, or a key press or mouse movement. The interrupt request level (IRQL) is the priority of an interrupt request.

Related tags:

193 questions
0
votes
2 answers

Realtime C programming vicInstallHandler need help to understand

Ive been to i need to understand this code in significantly more detail than the comments, can soemone help? void vicInstallIRQhandler(pVoidFunc_t pISR, uint32_t priority, uint32_t vicIntSource) { // store the handler address…
user1949280
  • 65
  • 2
  • 7
0
votes
1 answer

FIQ & IRQ mix usage causes kernel to freeze, why?

3 Interrupts enabled, 1 UART to IRQ (serial port), Timer1 to IRQ (to control a flickering LED), and Timer0 to FIQ (to generate an output stepping signal). first FIQ handler is empty: void FIQ_HANDLER(void) __fiq { if(FIQSTA & TIMER0) { …
Ge Rong
  • 386
  • 4
  • 15
0
votes
1 answer

request_irq successful. handler not called

I'm working on writing a module for the user button on the BeagleBoard-xM Rev C. For now, I'm just trying to print a message when the interrupt handler is called, i.e. when the user button is pressed. The user button corresponds to GPIO pin 4. I'm…
Ashwin
  • 881
  • 2
  • 11
  • 19
0
votes
2 answers

Can irq smp_affinity replace the rps(receive package steering)?

I have a Netcard eth0,it has single queue and its IRQ number is 63, My question is: If I set /proc/irq/63/smp_affinity to fffff Whether means that the Linux kernel will distribute the IRQ of eth0 to each cpu in my system? is its function equal to…
Chinaxing
  • 5,816
  • 4
  • 21
  • 31
0
votes
1 answer

Can I use free_irq in a software interrupt context?

The kernel documentation says about free_irq the following : This function must not be called from interrupt context. Does it include software interrupts? How can I free an IRQ in a software IRQ function? Thanks for your help,
Oswin
  • 475
  • 1
  • 5
  • 17
0
votes
1 answer

CPU not calling IRQ0?

I am writting an OS and trying to use the PIT. I have a handler written and wrote an ISR entry for the IRQ0 (Interrupt 32). The handler is not being called at all. I am pretty sure I am not putting the ISR entry in right. Any suggestions? Here is my…
user1454902
  • 730
  • 7
  • 20
0
votes
1 answer

Is ther an IRQ for a virtual serial port like ttyUSB0 on linux?

I'm reading data from virtual serial ports under Linux (the connected devices are xbee modules) At the moment the reading is done with a thread that checks the buffer of the port. But in case of many devices this isn't good, becuase on one port…
User_12399
  • 63
  • 9
-1
votes
1 answer

QEMU how-to allocate specific IRQ number for PCI device?

I'm running qemu-system-x86_64 with my new pci device. And i want to use IRQ 17 (Since driver from kernel listen for IRQ 17). But my PCI device take IRQ 10 or 11. base on interrupt_pin(A,B,C,E). Then i want to send irq to kernel module by…
Nick
  • 9
  • 3
-1
votes
1 answer

in arm7tdmi, when FIQ and RIQ occures at same time so how both are executed sequentially,first FIQ and thenIRQ?

in arm7tdmi, suppose instruction is being executed and at same time FIQ and IRQ both occur at same time.now according to priority FIQ will be handled then IRQ but my question is that how it will handled IRQ after return from FIQ i means what will…
-1
votes
2 answers

C Kernel - interrupts not working during while loops

I am making a kernel from scratch in c (Not linux. COMPLETELY from scratch) and I have come along a bit of a problem. I have this code: #include "timer.h" int ms = 0; void timer_handler(struct regs *r){ ms++; println("I print every…
ByteDuck
  • 1,631
  • 2
  • 12
  • 27
-1
votes
1 answer

How can malware cause DRIVER_IRQL_NOT_LESS_OR_EQUAL bugcheck?

I thought that this bugcheck is caused by pointers/memory management bugs in some device driver code, but there is popular opinion that malware activity can also trigger it, for example some virus causing the network driver to appear guilty in the…
JBDC
  • 5
  • 2
-1
votes
1 answer

Compiling c program with disable_irq and enable_irq error can't find lib linux/irq.h

I'm trying to create a C program whose goal is to enable_irq and disable_irq.I have include linux/irq.h like that #include And when I compile : gcc myProgram.c -o myExecutable I have the error : fatal error : linux/irq.h no file or…
user2429082
  • 455
  • 2
  • 7
  • 17
-2
votes
1 answer

How to make a scanf() type function in a 32bit os in c?

I am trying to make an os in c and assembly in 32-bits protected mode. I am trying to create a scanf() type function which gets the keyboard input until the enter button is pressed. I have a basic keyboard IRQ handler setup which prints anything…
Arnav Jain
  • 61
  • 9
1 2 3
12
13