Delaying, scheduling, and timer routines
Prev
Chapter 1. Driver Basics
Next
Delaying, scheduling, and timer routines
struct prev_cputime
— snaphsot of system and user cputime
struct task_cputime
— collected CPU time counts
struct thread_group_cputimer
— thread group interval timer counts
pid_alive
— check that a task structure is not stale
is_global_init
— check if a task structure is init. Since init is free to have sub-threads we need to check tgid.
task_nice
— return the nice value of a given task.
is_idle_task
— is the specified task an idle task?
threadgroup_change_begin
— mark the beginning of changes to a threadgroup
threadgroup_change_end
— mark the end of changes to a threadgroup
wake_up_process
— Wake up a specific process
preempt_notifier_register
— tell me when current is being preempted & rescheduled
preempt_notifier_unregister
— no longer interested in preemption notifications
preempt_schedule_notrace
— preempt_schedule called by tracing
sched_setscheduler
— change the scheduling policy and/or RT priority of a thread.
sched_setscheduler_nocheck
— change the scheduling policy and/or RT priority of a thread from kernelspace.
yield
— yield the current processor to other threads.
yield_to
— yield the current processor to another thread in your thread group, or accelerate that thread toward the processor it's on.
cpupri_find
— find the best (lowest-pri) CPU in the system
cpupri_set
— update the cpu priority setting
cpupri_init
— initialize the cpupri structure
cpupri_cleanup
— clean up the cpupri structure
cpu_load_update
— update the rq->cpu_load[] statistics
get_sd_load_idx
— Obtain the load index for a given sched domain.
update_sg_lb_stats
— Update sched_group's statistics for load balancing.
update_sd_pick_busiest
— return 1 on busiest group
update_sd_lb_stats
— Update sched_domain's statistics for load balancing.
check_asym_packing
— Check to see if the group is packed into the sched doman.
fix_small_imbalance
— Calculate the minor imbalance that exists amongst the groups of a sched_domain, during load balancing.
calculate_imbalance
— Calculate the amount of imbalance present within the groups of a given sched_domain during load balance.
find_busiest_group
— Returns the busiest group within the sched_domain if there is an imbalance.
DECLARE_COMPLETION
— declare and initialize a completion structure
DECLARE_COMPLETION_ONSTACK
— declare and initialize a completion structure
init_completion
— Initialize a dynamically allocated completion
reinit_completion
— reinitialize a completion structure
__round_jiffies
— function to round jiffies to a full second
__round_jiffies_relative
— function to round jiffies to a full second
round_jiffies
— function to round jiffies to a full second
round_jiffies_relative
— function to round jiffies to a full second
__round_jiffies_up
— function to round jiffies up to a full second
__round_jiffies_up_relative
— function to round jiffies up to a full second
round_jiffies_up
— function to round jiffies up to a full second
round_jiffies_up_relative
— function to round jiffies up to a full second
set_timer_slack
— set the allowed slack for a timer
init_timer_key
— initialize a timer
mod_timer_pending
— modify a pending timer's timeout
mod_timer
— modify a timer's timeout
mod_timer_pinned
— modify a timer's timeout
add_timer
— start a timer
add_timer_on
— start a timer on a particular CPU
del_timer
— deactive a timer.
try_to_del_timer_sync
— Try to deactivate a timer
del_timer_sync
— deactivate a timer and wait for the handler to finish.
schedule_timeout
— sleep until timeout
msleep
— sleep safely even with waitqueue interruptions
msleep_interruptible
— sleep waiting for signals
usleep_range
— Drop in replacement for udelay where wakeup is flexible