函数逻辑报告 |
Source Code:ipc\sem.c |
Create Date:2022-07-27 18:19:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 | |
int | semnum | |
struct sem_queue * | q | |
bool | count_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_zero且semaphore operation 恒等于0则返回:1 |
1074 | 如果非count_zero且semaphore operation 小于0则返回:1 |
1077 | 返回:0 |
名称 | 描述 |
---|---|
count_semcnt | 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |