MCPcopy Create free account
hub / github.com/F-Stack/f-stack / kern_yield

Function kern_yield

freebsd/kern/kern_synch.c:656–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void
657kern_yield(int prio)
658{
659 struct thread *td;
660
661 td = curthread;
662 DROP_GIANT();
663 thread_lock(td);
664 if (prio == PRI_USER)
665 prio = td->td_user_pri;
666 if (prio >= 0)
667 sched_prio(td, prio);
668 mi_switch(SW_VOL | SWT_RELINQUISH);
669 PICKUP_GIANT();
670}
671
672/*
673 * General purpose yield system call.

Callers 13

buf_daemonFunction · 0.70
getblkxFunction · 0.70
stop_all_procFunction · 0.70
vn_rdwr_inchunksFunction · 0.70
vlrureclaimFunction · 0.70
vnlru_procFunction · 0.70
__mnt_vnode_next_allFunction · 0.70
mnt_vnode_next_lazyFunction · 0.70
__mnt_vnode_next_lazyFunction · 0.70
userland_sysctlFunction · 0.70
maybe_yieldFunction · 0.70

Calls 2

sched_prioFunction · 0.70
mi_switchFunction · 0.70

Tested by

no test coverage detected