函数逻辑报告 |
Source Code:ipc\msg.c |
Create Date:2022-07-27 18:16:29 |
| Last Modify:2020-03-17 22:56:56 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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)
函数原型:static int newque(struct ipc_namespace *ns, struct ipc_params *params)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct ipc_namespace * | ns | |
| struct ipc_params * | params |
| 140 | msq等于kvmalloc(msq的长度, GFP_KERNEL) |
| 141 | 如果此条件成立可能性小(为编译器优化)(!msq)则返回:负ENOMEM |
| 147 | security = NULL |
| 148 | retval等于security_msg_queue_alloc( & q_perm) |
| 149 | 如果retval则 |
| 151 | 返回:retval |
| 154 | last msgsnd time 等于last msgrcv time 等于0 |
| 158 | pid of last msgsnd = last receive pid = NULL |
| 159 | 初始化链表头 |
| 160 | 初始化链表头 |
| 161 | 初始化链表头 |
| 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 | 如果retval小于0则 |
| 166 | ipc_rcu_putref( & q_perm, msg_rcu_free) |
| 167 | 返回:retval |
| 170 | ipc_unlock_object( & q_perm) |
| 173 | 返回:id |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |