Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:irq_work_needs_cpu

Proto:bool irq_work_needs_cpu(void)

Type:bool

Parameter:Nothing

121  raised = this_cpu_ptr( & raised_list)
122  lazy = this_cpu_ptr( & lazy_list)
124  If llist_empty - tests whether a lock-less list is empty*@head: the list to test* Not guaranteed to be accurate or up to date. Just a quick way to* test whether the list is empty without deleting something from the* list. || arch_irq_work_has_interrupt() Then If llist_empty - tests whether a lock-less list is empty*@head: the list to test* Not guaranteed to be accurate or up to date. Just a quick way to* test whether the list is empty without deleting something from the* list. Then
126  Return false
129  WARN_ON_ONCE(cpu_is_offline(smp_processor_id()))
131  Return true