linux

package
v1.1.0-beta.0...-05a35ca Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSockUID

func GetSockUID(uc net.UnixConn) (uid uint32, err error)

GetSockUID gets the uid of the other end of the UNIX domain socket

func OSVersion

func OSVersion() (osVersion string, err error)

OSVersion returns version info of operation system. e.g. Linux 4.15.0-45-generic.x86_64

func SetAffinity

func SetAffinity(cpus []int) error

SetAffinity sets cpu affinity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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