Function report | 
Source Code:ipc\sem.c | 
Create Date:2022-07-28 16:44:22 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:semctl_stat
Proto:static int semctl_stat(struct ipc_namespace *ns, int semid, int cmd, struct semid64_ds *semid64)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ipc_namespace * | ns | |
| int | semid | |
| int | cmd | |
| struct semid64_ds * | semid64 | 
| 1225 | If cmd == pcs ctl cmds || cmd == SEM_STAT_ANY Then | 
| 1226 | sma = sem_lock_(check_) routines are called in the paths where the rwsem* is not held.* The caller holds the RCU read lock. | 
| 1229 | Go to out_unlock | 
| 1231 | Else | 
| 1232 | sma = sem_obtain_object_check(ns, semid) | 
| 1235 | Go to out_unlock | 
| 1240 | If cmd == SEM_STAT_ANY Then audit_ipc_obj( & permissions .. see ipc.h ) | 
| 1242 | Else | 
| 1248 | err = security_sem_semctl( & permissions .. see ipc.h , cmd) | 
| 1249 | If err Then Go to 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 | If cmd == get ipc_perm options Then | 
| 1275 | err = 0 | 
| 1276 | Else | 
| 1283 | ipc_unlock_object( & permissions .. see ipc.h ) | 
| 1284 | out_unlock : | 
| 1286 | Return err | 
| Name | Describe | 
|---|---|
| ksys_semctl | |
| compat_ksys_semctl | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |