Linux Kernel Architecture
Chapter 14: Kernel Activities routine(ISRforshort)oraninterrupt handler. The purpose of this routine is to handle exception cond ...
Chapter 14: Kernel Activities From the peripheral devices (or their slots) electronic lines lead to the component used to send i ...
Chapter 14: Kernel Activities mode stack. However, this alone is not sufficient. Because the kernel also uses CPU resources to e ...
Chapter 14: Kernel Activities Work in the entry and exit path of an interrupt is made even more difficult by the fact that the p ...
Chapter 14: Kernel Activities 14.1.4 Data Structures There are two facets to the technical implementation of interrupts — assemb ...
Chapter 14: Kernel Activities The early versions of kernel 2.6 contained much platform-specific code to handle IRQs that was ide ...
Chapter 14: Kernel Activities void *handler_data; void *chip_data; struct irqaction *action; /* IRQ action list */ unsigned int ...
Chapter 14: Kernel Activities ❑ IRQ_PENDINGis active when the CPU has noticed an interrupt but has not yet executed the corre- s ...
Chapter 14: Kernel Activities void (*end)(unsigned int irq); void (*set_affinity)(unsigned int irq, cpumask_t dest); ... int (*s ...
Chapter 14: Kernel Activities One particular example for an interrupt controller chip implementation is the IO-APIC on AMD64 sys ...
Chapter 14: Kernel Activities 23:0000IO-APIC-fasteoi uhci_hcd:usb4, ehci_hcd:usb8 NMI: 0 0 0 0 Non-maskable interrupts LOC: 2307 ...
Chapter 14: Kernel Activities nextis used to implement shared IRQ handlers. Severalirqactioninstances are grouped into a linked ...
Chapter 14: Kernel Activities ❑ set_irq_chipassociates an IRQ chip in the form of anirq_chipinstance with a specific inter- rupt ...
Chapter 14: Kernel Activities kernel remembers that another IRQ needs to be served later. After masking the IRQ and sending an a ...
Chapter 14: Kernel Activities */ if (unlikely((desc->status & (IRQ_PENDING | IRQ_MASKED | IRQ_DISABLED)) == (IRQ_PENDING ...
Chapter 14: Kernel Activities either callingchip->mask_ackor,ifthisisnotavailable,chip->maskandchip->ackconsecutively. ...
Chapter 14: Kernel Activities Figure 14-7 shows the code flow diagram forrequest_irq. Create irqaction instance IRQF_SAMPLE_RAND ...
Chapter 14: Kernel Activities unique identification. The kernel scans the list of all registered handlers until it finds a match ...
Chapter 14: Kernel Activities Switchingto KernelMode The switch to kernel mode is based on assembly language code executed by th ...
Chapter 14: Kernel Activities Alternatively, the registers can also be copied to a location in address space that is not identic ...
«
40
41
42
43
44
45
46
47
48
49
»
Free download pdf