函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\irqdesc.c Create Date:2022-07-27 11:08:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:q_free_descs - free irq descriptors*@from: Start of descriptor range*@cnt: Number of consecutive irqs to free

函数原型:void irq_free_descs(unsigned int from, unsigned int cnt)

返回类型:void

参数:

类型参数名称
unsigned intfrom
unsigned intcnt
740  如果from大于等于nr_irqsfromcnt大于nr_irqs则返回
743  mutex_lock( & sparse_irq_lock)
744 i小于cnt循环free_desc(from + i)
747  bitmap_clear(allocated_irqs, from, cnt)
748  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
devm_irq_desc_release
irq_sim_initq_sim_init - Initialize the interrupt simulator: allocate a range of* dummy interrupts.*@sim: The interrupt simulator object to initialize.*@num_irqs: Number of interrupts to allocate* On success: return the base of the allocated interrupt range.
irq_sim_finiq_sim_fini - Deinitialize the interrupt simulator: free the interrupt* descriptors and allocated memory.*@sim: The interrupt simulator to tear down.
irq_reserve_ipiq_reserve_ipi() - Setup an IPI to destination cpumask*@domain: IPI domain*@dest: cpumask of cpus which can receive the IPI* Allocate a virq that can be used to send IPI to any CPU in dest mask