| Function report | 
| Source Code: ipc\util.c | Create Date:2022-07-28 16:39:40 | 
| Last Modify:2022-05-23 18:05:07 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:int ipc_addid(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ipc_ids * | ids | |
| struct kern_ipc_perm * | new | |
| int | limit | 
| 294 | Process spin lock initialization( & lock) | 
| 298 | current_euid_egid( & euid, & egid) | 
| 302 | deleted = false | 
| 307 | If idx >= 0 && key != IPC_PRIVATE Then | 
| 310 | If err < 0 Then | 
| 315 | If idx < 0 Then | 
| 322 | in_use++ | 
| 325 | Return idx | 
| Name | Describe | 
|---|---|
| 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. | 
| 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 |