linux

package
v7.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 3 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