函数逻辑报告 |
Source Code:ipc\util.c |
Create Date:2022-07-27 18:14:59 |
| Last Modify:2022-05-23 18:05:07 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int ipc_addid(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct ipc_ids * | ids | |
| struct kern_ipc_perm * | new | |
| int | limit |
| 294 | spin_lock_init( & lock) |
| 296 | 加自旋锁 |
| 298 | current_euid_egid( & euid, & egid) |
| 302 | deleted = false |
| 307 | 如果idx大于等于0且key不等于IPC_PRIVATE则 |
| 310 | 如果err小于0则 |
| 315 | 如果idx小于0则 |
| 322 | in_use自加 |
| 325 | 返回:idx |
| 名称 | 描述 |
|---|---|
| newque | 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) |
| newary | wary - Create a new semaphore set*@ns: namespace*@params: ptr to the structure that contains key, semflg and nsems* Called with sem_ids.rwsem held (as a writer) |
| newseg | wseg - Create a new shared memory segment*@ns: namespace*@params: ptr to the structure that contains key, size and shmflg* Called with shm_ids.rwsem held as a writer. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |