ULE implementation¶
The functions below are extracted from sys/kern/sched_ule.c in the
kern project. The scheduler.ule scope identifies this implementation
inside the manual; it is not the linked kernel symbol prefix. These are
implementation interfaces, including private helpers.
Functions
-
static inline void sched_update_hogticks(void)¶
-
static void sched_setpreempt(int)¶
-
static void sched_priority(struct thread*)¶
-
static void sched_thread_priority(struct thread*, u_char)¶
-
static int sched_interact_score(struct thread*)¶
-
static void sched_interact_update(struct thread*)¶
-
static void sched_interact_fork(struct thread*)¶
-
static void sched_pctcpu_update(struct td_sched*, int)¶
-
static inline struct thread *runq_choose_realtime(struct runq *const rq)¶
-
static inline struct thread *runq_choose_idle(struct runq *const rq)¶
-
static struct thread *tdq_choose(struct tdq*)¶
-
static void tdq_setup(struct tdq*, int i)¶
-
static void tdq_load_add(struct tdq*, struct thread*)¶
-
static void tdq_load_rem(struct tdq*, struct thread*)¶
-
static inline void tdq_runq_add(struct tdq*, struct thread*, int)¶
-
static inline void tdq_advance_ts_deq_off(struct tdq*, bool)¶
-
static inline void tdq_runq_rem(struct tdq*, struct thread*)¶
-
static inline int sched_shouldpreempt(int, int, int)¶
-
static void tdq_print(int cpu)¶
-
static void runq_print(struct runq *rq)¶
-
static int tdq_add(struct tdq*, struct thread*, int)¶
-
static inline int normalize_ts_off(int offset)¶
-
static void sched_setup(void)¶
-
static void sched_initticks(void)¶
-
static void sched_init(void)¶
-
static void sched_init_ap(void)¶
-
static int sched_rr_interval(void)¶
-
static void sched_lend_prio(struct thread *td, u_char prio)¶
-
static void sched_unlend_prio(struct thread *td, u_char prio)¶
-
static void sched_prio(struct thread *td, u_char prio)¶
-
static void sched_ithread_prio(struct thread *td, u_char prio)¶
-
static void sched_user_prio(struct thread *td, u_char prio)¶
-
static void sched_lend_user_prio(struct thread *td, u_char prio)¶
-
static void sched_lend_user_prio_cond(struct thread *td, u_char prio)¶
-
static void sched_switch(struct thread *td, int flags)¶
-
static void sched_nice(struct proc *p, int nice)¶
-
static void sched_sleep(struct thread *td, int prio)¶
-
static void sched_wakeup(struct thread *td, int srqflags)¶
-
static void sched_fork(struct thread *td, struct thread *child)¶
-
static void sched_fork_thread(struct thread *td, struct thread *child)¶
-
static void sched_class(struct thread *td, int class)¶
-
static void sched_exit(struct proc *p, struct thread *child)¶
-
static void sched_exit_thread(struct thread *td, struct thread *child)¶
-
static void sched_preempt(struct thread *td)¶
-
static void sched_userret_slowpath(struct thread *td)¶
-
static void sched_clock(struct thread *td, int cnt)¶
-
static u_int sched_estcpu(struct thread *td)¶
-
static bool sched_runnable(void)¶
-
static struct thread *sched_choose(void)¶
-
static void sched_add(struct thread *td, int flags)¶
-
static void sched_rem(struct thread *td)¶
-
static fixpt_t sched_pctcpu(struct thread *td)¶
-
static void sched_affinity(struct thread *td)¶
-
static void sched_bind(struct thread *td, int cpu)¶
-
static void sched_unbind(struct thread *td)¶
-
static int sched_is_bound(struct thread *td)¶
-
static void sched_relinquish(struct thread *td)¶
-
static int sched_load(void)¶
-
static int sched_sizeof_proc(void)¶
-
static int sched_sizeof_thread(void)¶
-
static void sched_idletd(void *dummy)¶
-
static void sched_ap_entry(void)¶
-
static void sched_throw(struct thread *td)¶
-
static void sched_fork_exit(struct thread *td)¶
-
static char *sched_tdname(struct thread *td)¶
-
static void sched_clear_tdname(struct thread *td)¶
-
static void sched_sysinit(void)¶
-
static int sched_find_l2_neighbor(int cpu)¶
-
static int sysctl_kern_quantum(SYSCTL_HANDLER_ARGS)¶
-
static int sysctl_kern_slice(SYSCTL_HANDLER_ARGS)¶