函数逻辑报告 |
Source Code:ipc\shm.c |
Create Date:2022-07-27 18:23:11 |
Last Modify:2020-03-17 22:58:32 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ksys_shmctl
函数原型:static long ksys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf, int version)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
int | shmid | |
int | cmd | |
struct shmid_ds __user * | buf | |
int | version |
1154 | err等于shmctl_ipc_info(ns, & shminfo) |
1159 | 返回:err |
1163 | err等于shmctl_shm_info(ns, & shm_info) |
1168 | 返回:err |
1170 | 当:cmd恒等于pcs ctl commands |
1171 | 当:cmd恒等于SHM_STAT_ANY |
1172 | 当:cmd恒等于get ipc_perm options |
1178 | 返回:err |
1180 | 当:cmd恒等于set ipc_perm options |
1181 | 如果copy_shmid_from_user( & sem64, buf, version)则返回:负EFAULT |
1184 | 当:cmd恒等于move resource |
1186 | 当:cmd恒等于super user shmctl commands |
1187 | 当:cmd恒等于SHM_UNLOCK |
1188 | 返回:shmctl_do_lock(ns, shmid, cmd) |
1189 | 默认 |
1190 | 返回:负EINVAL |
名称 | 描述 |
---|---|
SYSCALL_DEFINE3 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |