Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wake_const_ops - wake up non-alter tasks*@sma: semaphore array.*@semnum: semaphore that was modified.*@wake_q: lockless wake-queue head.* wake_const_ops must be called after a semaphore in a semaphore array* was set to 0

Proto:static int wake_const_ops(struct sem_array *sma, int semnum, struct wake_q_head *wake_q)

Type:int

Parameter:

TypeParameterName
struct sem_array *sma
intsemnum
struct wake_q_head *wake_q
840  semop_completed = 0
842  If semnum == -1 Then pending_list = pending complex operations
844  Else pending_list = pending single-sop operations
848  error = perform_atomic_semop(sma, q)
850  If error > 0 Then Continue
853  unlink_queue(sma, q)
855  wake_up_sem_queue_prepare(q, error, wake_q)
856  If error == 0 Then semop_completed = 1
860  Return semop_completed
Caller
NameDescribe
do_smart_wakeup_zerodo_smart_wakeup_zero - wakeup all wait for zero tasks*@sma: semaphore array*@sops: operations that were performed*@nsops: number of operations*@wake_q: lockless wake-queue head* Checks all required queue for wait-for-zero operations, based