mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-15 12:24:26 +01:00
Fixes: #5983 sched-core only makes sense on Linux hosts. Let's add stub/error for other platforms. Signed-off-by: Eric Ernst <eric_ernst@apple.com> Signed-off-by: Danny Canter <danny@dcantah.dev>
23 lines
527 B
Go
23 lines
527 B
Go
// Copyright (c) 2022 Apple Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package utils
|
|
|
|
// PidType is the type of provided pid value and how it should be treated
|
|
type PidType int
|
|
|
|
const (
|
|
pidTypePid = 0
|
|
pidTypeThreadGroupId = 1
|
|
pidTypeProcessGroupId = 2
|
|
|
|
// Pid affects the current pid
|
|
Pid PidType = pidTypePid
|
|
// ThreadGroup affects all threads in the group
|
|
ThreadGroup PidType = pidTypeThreadGroupId
|
|
// ProcessGroup affects all processes in the group
|
|
ProcessGroup PidType = pidTypeProcessGroupId
|
|
)
|