函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:heck_qop: Test if a queued operation sleeps on the semaphore semnum

函数原型:static int check_qop(struct sem_array *sma, int semnum, struct sem_queue *q, bool count_zero)

返回类型:int

参数:

类型参数名称
struct sem_array *sma
intsemnum
struct sem_queue *q
boolcount_zero
1056  sop等于he operation that blocked
1065  pr_info_once("semctl(GETNCNT/GETZCNT) is since 3.16 Single Unix Specification compliant.\nThe task %s (%d) triggered the difference, watch for misbehavior.\n", comm, task_pid_nr(当前进程))
1069  如果semaphore index in array 不等于semnum则返回:0
1072  如果count_zerosemaphore operation 恒等于0则返回:1
1074  如果非count_zerosemaphore operation 小于0则返回:1
1077  返回:0
调用者
名称描述
count_semcntThe 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