Function report |
Source Code:ipc\syscall.c |
Create Date:2022-07-28 16:49:00 |
| Last Modify:2020-03-17 22:59:43 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ksys_ipc
Proto:int ksys_ipc(unsigned int call, int first, unsigned long second, unsigned long third, void __user *ptr, long fifth)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | call | |
| int | first | |
| unsigned long | second | |
| unsigned long | third | |
| void __user * | ptr | |
| long | fifth |
| 26 | call &= 0xffff |
| 32 | Case call == SEMTIMEDOP |
| 33 | If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_64BIT) Then Return ksys_semtimedop(first, ptr, second, (conststruct__kernel_timespec__user * )fifth) |
| 36 | Else if IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_COMPAT_32BIT_TIME) Then Return compat_ksys_semtimedop(first, ptr, second, (conststructold_timespec32__user * )fifth) |
| 39 | Else Return -ENOSYS |
| 43 | Return ksys_semget(first, second, third) |
| 48 | If Get a simple variable from user space(arg, (unsignedlong__user * )ptr) Then Return -EFAULT |
| 50 | Return ksys_old_semctl(first, second, third, arg) |
| 58 | Case version == 0 |
| 63 | If copy_from_user( & tmp, (structipc_kludge__user * )ptr, size of tmp ) Then Return -EFAULT |
| 70 | Default |
| 76 | Return ksys_msgget((key_t)first, second) |
| 83 | Default |
| 89 | Return Write a simple value into user space(raddr, (unsignedlong__user * )third) |
| 91 | Case version == 1 |
| 96 | Return -EINVAL |
| 101 | Return ksys_shmget(first, second, third) |
| 105 | Default |
| 106 | Return -ENOSYS |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE6 |
| 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 |