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       bool __sched yield_to(struct task_struct * p, bool preempt);
11

ARGUMENTS

13       p
14           -- undescribed --
15
16       preempt
17           -- undescribed --
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

RETURNS

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 2.6.         June 2019                       YIELD_TO(9)
Impressum