函数逻辑报告 |
Source Code:kernel\sys.c |
Create Date:2022-07-27 10:20:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:make sure you are allowed to change @tsk limits before calling this
函数原型:int do_prlimit(struct task_struct *tsk, unsigned int resource, struct rlimit *new_rlim, struct rlimit *old_rlim)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | tsk | |
unsigned int | resource | |
struct rlimit * | new_rlim | |
struct rlimit * | old_rlim |
1533 | retval等于0 |
1535 | 如果resource大于等于RLIM_NLIMITS则返回:负EINVAL |
1537 | 如果new_rlim则 |
1540 | 如果resource恒等于RLIMIT_NOFILE且rlim_max大于sysctl_nr_open则返回:负EPERM |
1546 | read_lock( & tasklist_lock) |
1547 | 如果非sighand则 |
1554 | 如果new_rlim则 |
1563 | 如果非retval则 |
1569 | task_unlock(线程组主管) |
1580 | out : |
1581 | read_unlock( & tasklist_lock) |
1582 | 返回:retval |
名称 | 描述 |
---|---|
SYSCALL_DEFINE2 | |
COMPAT_SYSCALL_DEFINE2 | |
COMPAT_SYSCALL_DEFINE2 | |
SYSCALL_DEFINE4 | |
SYSCALL_DEFINE2 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |