| Function report | 
| Source Code: ipc\mqueue.c | Create Date:2022-07-28 16:51:39 | 
| Last Modify:2020-03-17 23:00:47 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:do_mq_timedreceive
Proto:static int do_mq_timedreceive(mqd_t mqdes, char __user *u_msg_ptr, size_t msg_len, unsigned int __user *u_msg_prio, struct timespec64 *ts)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| mqd_t | mqdes | |
| char __user * | u_msg_ptr | |
| size_t | msg_len | |
| unsigned int __user * | u_msg_prio | |
| struct timespec64 * | ts | 
| 1092 | struct posix_msg_tree_node * new_leaf = NULL | 
| 1094 | If ts Then | 
| 1099 | audit_mq_sendrecv(mqdes, msg_len, 0, ts) | 
| 1102 | If Value for the false possibility is greater at compile time(!file) Then | 
| 1107 | inode = file_inode(file) | 
| 1108 | If Value for the false possibility is greater at compile time(f_op != & mqueue_file_operations) Then | 
| 1113 | audit_file(file) | 
| 1115 | If Value for the false possibility is greater at compile time(!(f_mode & le is open for reading )) Then | 
| 1131 | If Not node_cache Then new_leaf = Allocation memory | 
| 1136 | If Not node_cache && new_leaf Then | 
| 1139 | node_cache = new_leaf | 
| 1140 | Else | 
| 1144 | If number of messages currently queued == 0 Then | 
| 1154 | Else | 
| 1168 | If ret == 0 Then | 
| 1169 | ret = message text size | 
| 1171 | If u_msg_prio && Write a simple value into user space(m_type, u_msg_prio) || store_msg(u_msg_ptr, msg_ptr, message text size ) Then | 
| 1177 | out_fput : | 
| 1179 | out : | 
| 1180 | Return ret | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE5 | 
| 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 |