函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:37:18 |
Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sys_sched_getattr - similar to sched_getparam, but with sched_attr*@pid: the pid in question.*@uattr: structure containing the extended parameters.*@usize: sizeof(attr) for fwd/bwd comp.*@flags: for future extension.
函数原型:SYSCALL_DEFINE4(sched_getattr, pid_t, pid, struct sched_attr __user *, uattr, unsigned int, usize, unsigned int, flags)
返回类型:
参数:无
5358 | struct sched_attr kattr = {} |
5362 | 如果(!uattr || pid < 0 || usize > PAGE_SIZE || usize < sizeof first published struct || flags)则返回:负EINVAL |
5367 | 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. |
5369 | 如果非p则转到:out_unlock |
5372 | retval等于security_task_getscheduler(p) |
5373 | 如果retval则转到:out_unlock |
5376 | sched_policy等于任务调度策略 |
5377 | 如果 Scheduler bits, serialized by scheduler locks: 则sched_flags或等于For the sched_{set,get}attr() calls |
5379 | 如果task_has_dl_policy(p)则__getparam_dl(p, & kattr) |
5381 | 否则如果task_has_rt_policy(p)则SCHED_FIFO, SCHED_RR 等于实时任务优先级 |
5383 | 否则SCHED_NORMAL, SCHED_BATCH 等于返回给定任务的值 |
5395 | out_unlock : |
5397 | 返回:retval |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |