函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:37:37 |
Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sched_rr_get_interval
函数原型:static int sched_rr_get_interval(pid_t pid, struct timespec64 *t)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
pid_t | pid | |
struct timespec64 * | t |
5875 | p等于d_process_by_pid - find a process with a matching PID value.*@pid: the pid in question.* The task of @pid, if found. %NULL otherwise. |
5876 | 如果非p则转到:out_unlock |
5879 | retval等于security_task_getscheduler(p) |
5880 | 如果retval则转到:out_unlock |
5884 | time_slice等于0 |
5885 | 如果get_rr_interval则time_slice等于get_rr_interval(rq, p) |
5887 | task_rq_unlock(rq, p, & rf) |
5890 | jiffies_to_timespec64(time_slice, t) |
5891 | 返回:0 |
5893 | out_unlock : |
5895 | 返回:retval |
名称 | 描述 |
---|---|
SYSCALL_DEFINE2 | sys_sched_rr_get_interval - return the default timeslice of a process.*@pid: pid of the process.*@interval: userspace pointer to the timeslice value.* this syscall writes the default timeslice value of a given process* into the user-space timespec buffer |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |