1. NAME

yield_to - yield the current processor to another thread in your thread group, or accelerate that thread toward the processor itAqs on.

2. SYNOPSIS

bool __sched yield_to(struct task_struct *  p , bool  preempt );

3. ARGUMENTS

p
    target task

preempt
    whether task preemption is allowed or not

4. DESCRIPTION

ItAqs the callerAqs job to ensure that the target task struct canAqt go away on us before we can do any checks.

5. RETURNS

true (>0) if we indeed boosted the target task. false (0) if we failed to boost the target. -ESRCH if thereAqs no task to yield to.

6. COPYRIGHT