函数逻辑报告 |
Source Code:ipc\shm.c |
Create Date:2022-07-27 18:22:59 |
| Last Modify:2020-03-17 22:58:32 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:shmctl_stat
函数原型:static int shmctl_stat(struct ipc_namespace *ns, int shmid, int cmd, struct shmid64_ds *tbuf)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct ipc_namespace * | ns | |
| int | shmid | |
| int | cmd | |
| struct shmid64_ds * | tbuf |
| 989 | 如果cmd恒等于pcs ctl commands 或cmd恒等于SHM_STAT_ANY则 |
| 995 | 否则 |
| 1010 | 如果cmd恒等于SHM_STAT_ANY则audit_ipc_obj( & shm_perm) |
| 1012 | 否则 |
| 1018 | err等于security_shm_shmctl( & shm_perm, cmd) |
| 1019 | 如果err则转到:out_unlock |
| 1022 | ipc_lock_object( & shm_perm) |
| 1031 | size of segment (bytes) 等于shm_segsz |
| 1032 | last attach time 等于shm_atim |
| 1033 | last detach time 等于shm_dtim |
| 1034 | last change time 等于shm_ctim |
| 1036 | shm_atime_high等于shm_atim右移32位 |
| 1037 | shm_dtime_high等于shm_dtim右移32位 |
| 1038 | shm_ctime_high等于shm_ctim右移32位 |
| 1040 | pid of creator 等于pid_vnr(shm_cprid) |
| 1041 | pid of last operator 等于pid_vnr(shm_lprid) |
| 1042 | . of current attaches 等于shm_nattch |
| 1044 | 如果cmd恒等于get ipc_perm options 则 |
| 1049 | err等于0 |
| 1050 | 否则 |
| 1058 | ipc_unlock_object( & shm_perm) |
| 1059 | out_unlock : |
| 1061 | 返回:err |
| 名称 | 描述 |
|---|---|
| ksys_shmctl | |
| compat_ksys_shmctl |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |