Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:heck_restart(sma, q)*@sma: semaphore array*@q: the operation that just completed* update_queue is O(N^2) when it restarts scanning the whole queue of* waiting operations. Therefore this function checks if the restart is* really necessary

Proto:static inline int check_restart(struct sem_array *sma, struct sem_queue *q)

Type:int

Parameter:

TypeParameterName
struct sem_array *sma
struct sem_queue *q
800  If Not list_empty - tests whether a list is empty*@head: the list to test. Then Return 1
804  If umber of operations > 1 Then Return 1
818  Return 0
Caller
NameDescribe
update_queuepdate_queue - look for tasks that can be completed.*@sma: semaphore array.*@semnum: semaphore that was modified.*@wake_q: lockless wake-queue head.* update_queue must be called after a semaphore in a semaphore array* was modified