函数逻辑报告 |
Source Code:ipc\shm.c |
Create Date:2022-07-27 18:22:48 |
| Last Modify:2020-03-17 22:58:32 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This function handles some shmctl 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 shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, struct shmid64_ds *shmid64)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct ipc_namespace * | ns | |
| int | shmid | |
| int | cmd | |
| struct shmid64_ds * | shmid64 |
| 898 | lock for writing |
| 903 | 如果是错误则 |
| 905 | 转到:out_unlock1 |
| 910 | err等于security_shm_shmctl( & shm_perm, cmd) |
| 911 | 如果err则转到:out_unlock1 |
| 915 | 当:cmd恒等于move resource |
| 916 | ipc_lock_object( & shm_perm) |
| 919 | 转到:out_up |
| 920 | 当:cmd恒等于set ipc_perm options |
| 921 | ipc_lock_object( & shm_perm) |
| 922 | 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. |
| 923 | 如果err则转到:out_unlock0 |
| 926 | 退出 |
| 927 | 默认 |
| 929 | 转到:out_unlock1 |
| 932 | out_unlock0 : |
| 933 | ipc_unlock_object( & shm_perm) |
| 934 | out_unlock1 : |
| 936 | out_up : |
| 938 | 返回:err |
| 名称 | 描述 |
|---|---|
| ksys_shmctl | |
| compat_ksys_shmctl |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |