MCPcopy
hub / github.com/cilium/ebpf / PossibleCPU

Function PossibleCPU

cpu.go:5–7  ·  view source on GitHub ↗

PossibleCPU returns the max number of CPUs a system may possibly have Logical CPU numbers must be of the form 0-n

()

Source from the content-addressed store, hash-verified

3// PossibleCPU returns the max number of CPUs a system may possibly have
4// Logical CPU numbers must be of the form 0-n
5func PossibleCPU() (int, error) {
6 return possibleCPU()
7}
8
9// MustPossibleCPU is a helper that wraps a call to PossibleCPU and panics if
10// the error is non-nil.

Callers 9

MustPossibleCPUFunction · 0.85
TestPossibleCPUFunction · 0.85
fixupMagicFieldsMethod · 0.85
newMapFromPartsFunction · 0.85
ensurePerCPUSliceFunction · 0.85
marshalPerCPUValueFunction · 0.85
marshalBatchPerCPUValueFunction · 0.85
unmarshalPerCPUValueFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestPossibleCPUFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…