Function report |
Source Code:ipc\msg.c |
Create Date:2022-07-28 16:41:13 |
Last Modify:2020-03-17 22:56:56 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:wque - Create a new msg queue*@ns: namespace*@params: ptr to the structure that contains the key and msgflg* Called with msg_ids.rwsem held (writer)
Proto:static int newque(struct ipc_namespace *ns, struct ipc_params *params)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct ipc_namespace * | ns | |
struct ipc_params * | params |
140 | msq = kvmalloc( size of msq , GFP_KERNEL) |
141 | If Value for the false possibility is greater at compile time(!msq) Then Return -ENOMEM |
147 | security = NULL |
148 | retval = security_msg_queue_alloc( & q_perm) |
149 | If retval Then |
151 | Return retval |
154 | last msgsnd time = last msgrcv time = 0 |
158 | pid of last msgsnd = last receive pid = NULL |
164 | retval = pc_addid - add an ipc identifier*@ids: ipc identifier set*@new: new ipc permission set*@limit: limit for the number of used ids* Add an entry 'new' to the ipc ids idr |
165 | If retval < 0 Then |
166 | ipc_rcu_putref( & q_perm, msg_rcu_free) |
167 | Return retval |
170 | ipc_unlock_object( & q_perm) |
173 | Return id |
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 |