函数逻辑报告 |
Source Code:ipc\sem.c |
Create Date:2022-07-27 18:19:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int wake_const_ops(struct sem_array *sma, int semnum, struct wake_q_head *wake_q)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sem_array * | sma | |
int | semnum | |
struct wake_q_head * | wake_q |
840 | semop_completed等于0 |
842 | 如果semnum恒等于负1则pending_list等于pending complex operations |
848 | error等于perform_atomic_semop(sma, q) |
850 | 如果error大于0则继续下一循环 |
853 | unlink_queue(sma, q) |
855 | wake_up_sem_queue_prepare(q, error, wake_q) |
856 | 如果error恒等于0则semop_completed等于1 |
860 | 返回:semop_completed |
名称 | 描述 |
---|---|
do_smart_wakeup_zero | do_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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |