Function report |
Source Code:ipc\shm.c |
Create Date:2022-07-28 16:48:15 |
Last Modify:2020-03-17 22:58:32 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:compat_ksys_shmctl
Proto:long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
int | shmid | |
int | cmd | |
void __user * | uptr | |
int | version |
1349 | err = shmctl_ipc_info(ns, & shminfo) |
1354 | Return err |
1358 | err = shmctl_shm_info(ns, & shm_info) |
1361 | If put_compat_shm_info( & shm_info, uptr) Then err = -EFAULT |
1363 | Return err |
1365 | Case cmd == get ipc_perm options |
1366 | Case cmd == SHM_STAT_ANY |
1367 | Case cmd == pcs ctl commands |
1373 | Return err |
1375 | Case cmd == set ipc_perm options |
1376 | If copy_compat_shmid_from_user( & sem64, uptr, version) Then Return -EFAULT |
1379 | Case cmd == move resource |
1381 | Case cmd == super user shmctl commands |
1382 | Case cmd == SHM_UNLOCK |
1383 | Return shmctl_do_lock(ns, shmid, cmd) |
1384 | Break |
1385 | Default |
1386 | Return -EINVAL |
1388 | Return err |
Name | Describe |
---|---|
COMPAT_SYSCALL_DEFINE3 |
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 |