Debian Codegraph @

abi/linux/sched.go

raw symbols SCIP
1 // Copyright 2018 The gVisor Authors.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 package linux
16
17 // Scheduling policies, exposed by sched_getscheduler(2)/sched_setscheduler(2).
18 const (
19 SCHED_NORMAL = 0
20 SCHED_FIFO = 1
21 SCHED_RR = 2
22 SCHED_BATCH = 3
23 SCHED_IDLE = 5
24 SCHED_DEADLINE = 6
25 SCHED_MICROQ = 16
26
27 // SCHED_RESET_ON_FORK is a flag that indicates that the process is
28 // reverted back to SCHED_NORMAL on fork.
29 SCHED_RESET_ON_FORK = 0x40000000
30 )
31
32 // Scheduling priority group selectors.
33 const (
34 PRIO_PGRP = 0x1
35 PRIO_PROCESS = 0x0
36 PRIO_USER = 0x2
37 )