hostcpu

package
v0.0.0-...-bdf53b9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 2

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

func MaxPossibleCPU() (uint32, error)

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.

Jump to

Keyboard shortcuts

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