YIELD_TO(9) Driver Basics YIELD_TO(9)NAMEyield_to - yield the current processor to another thread in your thread
group, or accelerate that thread toward the processor it's on.
SYNOPSIS
bool __sched yield_to(struct task_struct * p, bool preempt);
ARGUMENTS
p
target task
preempt
whether task preemption is allowed or not
DESCRIPTION
It's the caller's job to ensure that the target task struct can't go
away on us before we can do any checks.
Returns true if we indeed boosted the target task.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 YIELD_TO(9)