Documentation ¶
Overview ¶
Package hostcpu provides utilities for working with CPU information provided by a host Linux kernel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCPU ¶
func GetCPU() uint32
GetCPU returns the caller's current CPU number, without using the Linux VDSO (which is not available to the sentry) or the getcpu(2) system call (which is relatively slow).
func MaxPossibleCPU ¶
MaxPossibleCPU returns the highest possible CPU number, which is guaranteed not to change for the lifetime of the host kernel.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.