| 函数逻辑报告 | 
| Source Code: ipc\sem.c | Create Date:2022-07-27 18:20:10 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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.
函数原型:static int semctl_down(struct ipc_namespace *ns, int semid, int cmd, struct semid64_ds *semid64)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct ipc_namespace * | ns | |
| int | semid | |
| int | cmd | |
| struct semid64_ds * | semid64 | 
| 1590 | lock for writing | 
| 1595 | 如果是错误则 | 
| 1597 | 转到:out_unlock1 | 
| 1602 | err等于security_sem_semctl( & permissions .. see ipc.h , cmd) | 
| 1603 | 如果err则转到:out_unlock1 | 
| 1607 | 当:cmd恒等于move resource | 
| 1611 | 转到:out_up | 
| 1612 | 当:cmd恒等于set ipc_perm options | 
| 1614 | err等于pc_update_perm - update the permissions of an ipc object*@in: the permission given as input.*@out: the permission of the ipc to set. | 
| 1615 | 如果err则转到:out_unlock0 | 
| 1618 | 退出 | 
| 1619 | 默认 | 
| 1621 | 转到:out_unlock1 | 
| 1624 | out_unlock0 : | 
| 1625 | sem_unlock(sma, - 1) | 
| 1626 | out_unlock1 : | 
| 1628 | out_up : | 
| 1629 | lease a write lock | 
| 1630 | 返回:err | 
| 名称 | 描述 | 
|---|---|
| ksys_semctl | |
| compat_ksys_semctl | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |