| Function report | 
| Source Code: ipc\sem.c | Create Date:2022-07-28 16:44:28 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:semctl_info
Proto:static int semctl_info(struct ipc_namespace *ns, int semid, int cmd, void __user *p)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct ipc_namespace * | ns | |
| int | semid | |
| int | cmd | |
| void __user * | p | 
| 1296 | err = security_sem_semctl(NULL, cmd) | 
| 1309 | lock for reading | 
| 1313 | Else | 
| 1314 | semusz = sizeof struct sem_undo | 
| 1315 | semaem = adjust on exit max value | 
| 1317 | max_idx = pc_get_maxidx - get the highest assigned index*@ids: ipc identifier set* Called with ipc_ids.rwsem held for reading. | 
| 1318 | lease a read lock | 
| 1319 | If copy_to_user(p, & seminfo, size of seminfo ) Then Return -EFAULT | 
| Name | Describe | 
|---|---|
| ksys_semctl | |
| compat_ksys_semctl | 
| 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 |