Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Claim the entry so that no one else will poke at it.

Proto:static bool irq_work_claim(struct irq_work *work)

Type:bool

Parameter:

TypeParameterName
struct irq_work *work
34  oflags = atomic_fetch_or(IRQ_WORK_CLAIMED, & flags)
40  If oflags & An entry can be in one of four states:* free NULL, 0 -> {claimed} : free to be used* claimed NULL, 3 -> {pending} : claimed to be enqueued* pending next, 3 -> {busy} : queued, pending callback* busy NULL, 2 -> {free, claimed} : callback in progress, can Then Return false
42  Return true
Caller
NameDescribe
irq_work_queueEnqueue the irq work @work on the current CPU