cpuset

package
v0.0.0-...-443f26f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder() Builder

func (Builder) Add

func (b Builder) Add(elems ...int)

func (Builder) Result

func (b Builder) Result() CPUSet

type CPUSet

type CPUSet map[int]struct{}

func Get

func Get() (CPUSet, error)

func NewCPUSet

func NewCPUSet(cpus ...int) CPUSet

func Parse

func Parse(s string) (CPUSet, error)

func (CPUSet) ToSlice

func (s CPUSet) ToSlice() []int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL