MCPcopy Create free account
hub / github.com/f9micro/f9-kernel / sched_set_priority

Function sched_set_priority

kernel/sched.c:336–368  ·  view source on GitHub ↗

* Change thread priority safely. * Handles queue migration atomically if thread is queued. * IRQ-safe: protects critical section from interrupt corruption. * * @param thread Thread to modify * @param new_prio New priority level (0 = highest, 31 = lowest) */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

ipc_fastpath_helperFunction · 0.85
do_ipcFunction · 0.85
sys_scheduleFunction · 0.85
thread_switchFunction · 0.85

Calls 5

irq_kernel_critical_exitFunction · 0.85
sched_is_queuedFunction · 0.85
sched_dequeueFunction · 0.85
sched_enqueueFunction · 0.85

Tested by

no test coverage detected