Function report | 
Source Code:ipc\msg.c | 
Create Date:2022-07-28 16:41:46 | 
| Last Modify:2020-03-17 22:56:56 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:msgctl_stat
Proto:static int msgctl_stat(struct ipc_namespace *ns, int msqid, int cmd, struct msqid64_ds *p)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ipc_namespace * | ns | |
| int | msqid | |
| int | cmd | |
| struct msqid64_ds * | p | 
| 500 | If cmd == pcs ctl commands || cmd == MSG_STAT_ANY Then | 
| 501 | msq = msq_obtain_object(ns, msqid) | 
| 504 | Go to out_unlock | 
| 506 | Else | 
| 507 | msq = msq_obtain_object_check(ns, msqid) | 
| 510 | Go to out_unlock | 
| 515 | If cmd == MSG_STAT_ANY Then audit_ipc_obj( & q_perm) | 
| 517 | Else | 
| 523 | err = security_msg_queue_msgctl( & q_perm, cmd) | 
| 524 | If err Then Go to out_unlock | 
| 527 | ipc_lock_object( & q_perm) | 
| 540 | msg_stime_high = last msgsnd time >> 32 | 
| 541 | msg_rtime_high = last msgrcv time >> 32 | 
| 542 | msg_ctime_high = last change time >> 32 | 
| 548 | last receive pid = pid_vnr(last receive pid ) | 
| 550 | If cmd == get ipc_perm options Then | 
| 555 | err = 0 | 
| 556 | Else | 
| 564 | ipc_unlock_object( & q_perm) | 
| 565 | out_unlock : | 
| 567 | Return err | 
| Name | Describe | 
|---|---|
| ksys_msgctl | |
| compat_ksys_msgctl | 
| 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  |