H A D | syscalls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kernel/sched/syscalls.c 5 * Core kernel scheduler syscalls related code 7 * Copyright (C) 1991-2002 Linus Torvalds 8 * Copyright (C) 1998-2024 Ingo Molnar, Red Hat 19 static inline int __normal_prio(int policy, int rt_prio, int nice) in __normal_prio() argument 23 if (dl_policy(policy)) in __normal_prio() 296 int policy = attr->sched_policy; DEFINE_CLASS() local 460 user_check_sched_setscheduler(struct task_struct * p,const struct sched_attr * attr,int policy,int reset_on_fork) user_check_sched_setscheduler() argument 520 int oldpolicy = -1, policy = attr->sched_policy; __sched_setscheduler() local 759 _sched_setscheduler(struct task_struct * p,int policy,const struct sched_param * param,bool check) _sched_setscheduler() argument 792 sched_setscheduler(struct task_struct * p,int policy,const struct sched_param * param) sched_setscheduler() argument 822 sched_setscheduler_nocheck(struct task_struct * p,int policy,const struct sched_param * param) sched_setscheduler_nocheck() argument 874 do_sched_setscheduler(pid_t pid,int policy,struct sched_param __user * param) do_sched_setscheduler() argument 955 SYSCALL_DEFINE3(sched_setscheduler,pid_t,pid,int,policy,struct sched_param __user *,param) SYSCALL_DEFINE3() argument 1485 SYSCALL_DEFINE1(sched_get_priority_max,int,policy) SYSCALL_DEFINE1() argument 1513 SYSCALL_DEFINE1(sched_get_priority_min,int,policy) SYSCALL_DEFINE1() argument [all...] |