Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\manage.c Create Date:2022-07-28 10:10:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Internal function to unregister a percpu irqaction.

Proto:static struct irqaction *__free_percpu_irq(unsigned int irq, void __percpu *dev_id)

Type:struct irqaction

Parameter:

TypeParameterName
unsigned intirq
void __percpu *dev_id
2270  desc = Interrupt to descriptor
2274  WARN(in_interrupt(), "Trying to free IRQ %d from IRQ context!\n", irq)
2276  If Not desc Then Return NULL
2279  raw_spin_lock_irqsave( & lock, flags)
2281  action = IRQ action list
2282  If Not action || percpu_dev_id != dev_id Then
2283  WARN(1, "Trying to free already-free IRQ %d\n", irq)
2284  Go to bad
2287  If Not pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. Then
2288  WARN(1, "percpu IRQ %d still enabled on CPU%d!\n", irq, Uniprocessor. Assume all masks are "1". )
2290  Go to bad
2294  IRQ action list = NULL
2296  istate &= ~IRQS_NMI
2298  raw_spin_unlock_irqrestore( & lock, flags)
2300  unregister_handler_proc(irq, action)
2302  q_chip_pm_put - Disable power for an IRQ chip*@data: Pointer to interrupt specific data* Disable the power to the IRQ chip referenced by the interrupt data* structure, belongs. Note that power will only be disabled, once this
2303  module_put(owner)
2304  Return action
2306  bad :
2307  raw_spin_unlock_irqrestore( & lock, flags)
2308  Return NULL
Caller
NameDescribe
remove_percpu_irqmove_percpu_irq - free a per-cpu interrupt*@irq: Interrupt line to free*@act: irqaction for the interrupt* Used to remove interrupts statically setup by the early boot process.
free_percpu_irq_percpu_irq - free an interrupt allocated with request_percpu_irq*@irq: Interrupt line to free*@dev_id: Device identity to free* Remove a percpu interrupt handler. The handler is removed, but* the interrupt line is not disabled. This must be done on each
free_percpu_nmi