Documentation ¶
Index ¶
- type CPUSet
- func (c CPUSet) ContainsAny(other CPUSet) bool
- func (c CPUSet) Copy() CPUSet
- func (c CPUSet) Difference(other CPUSet) CPUSet
- func (c CPUSet) Equals(other CPUSet) bool
- func (c CPUSet) IsSubsetOf(other CPUSet) bool
- func (c CPUSet) IsSupersetOf(other CPUSet) bool
- func (c CPUSet) Size() int
- func (c CPUSet) String() string
- func (c CPUSet) ToSlice() []uint16
- func (c CPUSet) Union(other CPUSet) CPUSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUSet ¶
type CPUSet struct {
// contains filtered or unexported fields
}
CPUSet is a set like object that provides methods helpful when working with cpus with systems such as the Linux cpuset cgroup subsystem. A CPUSet is immutable and can be safely accessed concurrently.
func Parse ¶
Parse parses the Linux cpuset format into a CPUSet
Ref: http://man7.org/linux/man-pages/man7/cpuset.7.html#FORMATS
func (CPUSet) ContainsAny ¶
ContainsAny returns true if any cpus in other CPUSet are present
func (CPUSet) Difference ¶
Difference returns a new set that is the difference of this CPUSet and the supplied other. [0,1,2,3].Difference([2,3,4]) = [0,1]
func (CPUSet) IsSubsetOf ¶
IsSubsetOf returns true if all cpus of the this CPUSet are present in the other CPUSet.
func (CPUSet) IsSupersetOf ¶
Click to show internal directories.
Click to hide internal directories.