函数逻辑报告 |
Source Code:ipc\sem.c |
Create Date:2022-07-27 18:19:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:semctl_stat
函数原型:static int semctl_stat(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 |
1225 | 如果cmd恒等于pcs ctl cmds 或cmd恒等于SEM_STAT_ANY则 |
1226 | sma等于sem_lock_(check_) routines are called in the paths where the rwsem* is not held.* The caller holds the RCU read lock. |
1227 | 如果是错误则 |
1229 | 转到:out_unlock |
1231 | 否则 |
1240 | 如果cmd恒等于SEM_STAT_ANY则audit_ipc_obj( & permissions .. see ipc.h ) |
1242 | 否则 |
1248 | err等于security_sem_semctl( & permissions .. see ipc.h , cmd) |
1249 | 如果err则转到:out_unlock |
1252 | ipc_lock_object( & permissions .. see ipc.h ) |
1261 | semotime等于get_semotime(sma) |
1262 | last semop time 等于semotime |
1265 | sem_otime_high等于semotime右移32位 |
1266 | sem_ctime_high等于create/last semctl() time 右移32位 |
1270 | 如果cmd恒等于get ipc_perm options 则 |
1275 | err等于0 |
1276 | 否则 |
1283 | ipc_unlock_object( & permissions .. see ipc.h ) |
1284 | out_unlock : |
1286 | 返回:err |
名称 | 描述 |
---|---|
ksys_semctl | |
compat_ksys_semctl |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |