函数逻辑报告 | 
Source Code:ipc\util.c | 
Create Date:2022-07-27 18:14:54 | 
| Last Modify:2022-05-23 18:05:07 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Insert new IPC object into idr tree, and set sequence number and id* in the correct order.* Especially:* - the sequence number must be set before inserting the object into the idr,* because the sequence number is accessed without a lock.
函数原型:static inline int ipc_idr_alloc(struct ipc_ids *ids, struct kern_ipc_perm *new)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct ipc_ids * | ids | |
| struct kern_ipc_perm * | new | 
| 203 | next_id等于负1 | 
| 222 | 如果next_id小于0则 | 
| 225 | max_idx等于两数取大(in_use * 3 / 2, ipc_min_cycle) | 
| 232 | 如果idx大于等于0则 | 
| 252 | 否则 | 
| 253 | seq等于ipcid_to_seqx(next_id) | 
| 257 | 如果idx大于等于0则id等于seq左移ipcmni_seq_shift()位的值加idx | 
| 259 | 返回:idx | 
| 名称 | 描述 | 
|---|---|
| ipc_addid | 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 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |