1YIELD_TO(9)                      Driver Basics                     YIELD_TO(9)
2
3
4

NAME

6       yield_to - yield the current processor to another thread in your thread
7       group, or accelerate that thread toward the processor it's on.
8

SYNOPSIS

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

ARGUMENTS

13       p
14           target task
15
16       preempt
17           whether task preemption is allowed or not
18

DESCRIPTION

20       It's the caller's job to ensure that the target task struct can't go
21       away on us before we can do any checks.
22

RETURN

24       true (>0) if we indeed boosted the target task. false (0) if we failed
25       to boost the target. -ESRCH if there's no task to yield to.
26
28Kernel Hackers Manual 3.10         June 2019                       YIELD_TO(9)
Impressum