函数逻辑报告 |
Source Code:ipc\sem.c |
Create Date:2022-07-27 18:19:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Free a semaphore set. freeary() is called with sem_ids.rwsem locked* as a writer and the spinlock for this semaphore set hold. sem_ids.rwsem* remains locked on exit.
函数原型:static void freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ipc_namespace * | ns | |
struct kern_ipc_perm * | ipcp |
1135 | 删除链表项 |
1136 | 加自旋锁 |
1137 | semaphore set identifier 等于负1 |
1138 | 删除不需要重新初始化的列表项 |
1139 | 自旋锁解锁 |
1145 | unlink_queue(sma, q) |
1146 | wake_up_sem_queue_prepare(q, - EIDRM, & wake_q) |
1150 | unlink_queue(sma, q) |
1151 | wake_up_sem_queue_prepare(q, - EIDRM, & wake_q) |
1153 | 以i小于. of semaphores in array 循环 |
1156 | unlink_queue(sma, q) |
1157 | wake_up_sem_queue_prepare(q, - EIDRM, & wake_q) |
1160 | unlink_queue(sma, q) |
1161 | wake_up_sem_queue_prepare(q, - EIDRM, & wake_q) |
1168 | sem_unlock(sma, - 1) |
1173 | ipc_rcu_putref( & permissions .. see ipc.h , sem_rcu_free) |
名称 | 描述 |
---|---|
semctl_down | This function handles some semctl commands which require the rwsem* to be held in write mode.* NOTE: no locks must be held, the rwsem is taken inside this function. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |