函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The following counts are associated to each semaphore:* semncnt number of tasks waiting on semval being nonzero* semzcnt number of tasks waiting on semval being zero* Per definition, a task waits only on the semaphore of the first semop

函数原型:static int count_semcnt(struct sem_array *sma, ushort semnum, bool count_zero)

返回类型:int

参数:

类型参数名称
struct sem_array *sma
ushortsemnum
boolcount_zero
1094  semcnt等于0
1096  如果count_zerol等于pending single-sop operations
1098  否则l等于pending single-sop operations
1105  semcnt自加
1110  semcnt加等于heck_qop: Test if a queued operation sleeps on the semaphore semnum
1112  如果count_zero
1114  semcnt加等于heck_qop: Test if a queued operation sleeps on the semaphore semnum
1117  返回:semcnt
调用者
名称描述
semctl_main