Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:37:04 |
Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sched_rr_get_interval
Proto:static int sched_rr_get_interval(pid_t pid, struct timespec64 *t)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If Not p Then Go to out_unlock |
5879 | retval = security_task_getscheduler(p) |
5880 | If retval Then Go to out_unlock |
5884 | time_slice = 0 |
5885 | If get_rr_interval Then time_slice = get_rr_interval(rq, p) |
5887 | task_rq_unlock(rq, p, & rf) |
5890 | jiffies_to_timespec64(time_slice, t) |
5891 | Return 0 |
5893 | out_unlock : |
5895 | Return retval |
Name | Describe |
---|---|
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 |
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 |