Network Information Service Overview NIS - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Network Information Service Overview NIS

Description:

Provides a statically created list of 32 bottom halves. Each BH ... Softirqs are a set of 32 statically defined bh that can run simultaneously on any processor ... – PowerPoint PPT presentation

Number of Views:75
Avg rating:3.0/5.0
Slides: 14
Provided by: vishwanat
Category:

less

Transcript and Presenter's Notes

Title: Network Information Service Overview NIS


1
h

h
h
h
h
Intricacies of Interrupt Handling in
Linux Anandaraj Thangappan
2
Agenda
  • Introduction
  • Interrupt Handler
  • Interrupt Handling
  • Bottom Halves

3
Introduction
  • An interrupt is a communication gateway between
    the device and a processor.
  • Interrupt Classification
  • Interrupt Latency
  • Enabling/Disabling Interrupts

4
Interrupt Handler
  • It is a function situated in the kernel that
    determines the nature of the interrupt and
    performs whatever actions are needed
  • It is invoked whenever an interrupt occurs
  • Registering an interrupt handler.
  • request_irq()
  • free_irq()

5
Interrupt Handling
  • Top/Bottom Halves
  • Why Bottom Halves?
  • How to divide works?

6
Bottom Halves
  • BH
  • Task Queues
  • Softirqs
  • Tasklets
  • Work Queues

7
BH
  • Provides a statically created list of 32 bottom
    halves
  • Each BH was globally synchronized
  • No two could run at the same time, even on
    different processors

8
Task Queues
  • Task queues are the kernel's way of deferring
    work until later.
  • There are three task queues created and managed
    by the kernel
  • A device driver can create and use task queues

9
Softirqs
  • Softirqs are a set of 32 statically defined bh
    that can run simultaneously on any processor
  • Run in interrupt context with all interrupts
    enabled.

10
Tasklets
  • A tasklet is created dynamically and may run on
    only one CPU at a time
  • Two different tasklets can run at the same time
    on two different processors
  • Run with all interrupts enabled
  • Using Tasklets

11
Work Queues
  • Workqueue functions run in the context of a
    special kernel process
  • Work queue subsystem
  • Using Work Queues

12
References
  • Linux Device Drivers, Jonathan Corbet,
    Alessandro, Rubini, and Greg Kroah-Hartman
  • Dynamic Interrupt Request Allocation for Device
    Drivers (www.linuxjournal.com/article/8064)

13
  • Thank You!
  • anandaraj.thangappan_at_wipro.com
Write a Comment
User Comments (0)
About PowerShow.com