Function report |
Source Code:kernel\sys.c |
Create Date:2022-07-28 09:20:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:SYSCALL_DEFINE4
Proto:SYSCALL_DEFINE4(prlimit64, pid_t, pid, unsigned int, resource, const struct rlimit64 __user *, new_rlim, struct rlimit64 __user *, old_rlim)
Type:
Parameter:Nothing
| 1615 | checkflags = 0 |
| 1618 | If old_rlim Then checkflags |= Flags for security_task_prlimit(). |
| 1621 | If new_rlim Then |
| 1622 | If copy_from_user( & new64, new_rlim, size of new64 ) Then Return -EFAULT |
| 1624 | rlim64_to_rlim( & new64, & new) |
| 1625 | checkflags |= LSM_PRLIMIT_WRITE |
| 1630 | If Not tsk Then |
| 1632 | Return -ESRCH |
| 1634 | ret = lock must be held |
| 1635 | If ret Then |
| 1637 | Return ret |
| 1639 | get_task_struct(tsk) |
| 1646 | rlim_to_rlim64( & old, & old64) |
| 1651 | put_task_struct(tsk) |
| 1652 | Return ret |
| 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 |