sched_setscheduler(9)

sched_setscheduler9

Change the scheduling policy and/or rt priority of a thread.

Usage

int sched_setscheduler(struct task_struct * p, int policy, const struct sched_param * param);

Arguments

p

the task in question.

policy

new policy.

param

structure containing the new RT priority.

Return

0 on success. An error code otherwise.

NOTE that the task may be already dead.

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.