linux

package
v0.0.0-...-88e1167 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ABSTRACT_UNIX_SOCK_LEN int = C.ABSTRACT_UNIX_SOCK_LEN
View Source
const CLOSE_RANGE_CLOEXEC uint32 = C.CLOSE_RANGE_CLOEXEC
View Source
const CLOSE_RANGE_UNSHARE uint32 = C.CLOSE_RANGE_UNSHARE
View Source
const IoctlBtrfsSetReceivedSubvol = C.BTRFS_IOC_SET_RECEIVED_SUBVOL

IoctlBtrfsSetReceivedSubvol is used to set information about a received subvolume.

View Source
const IoctlHIDIOCGrawInfo = C.HIDIOCGRAWINFO

IoctlHIDIOCGrawInfo contains the bus type, the vendor ID (VID), and product ID (PID) of the device.

View Source
const IoctlVhostVsockSetGuestCid = C.VHOST_VSOCK_SET_GUEST_CID

IoctlVhostVsockSetGuestCid is used to set the vsock guest context ID.

Variables

This section is empty.

Functions

func CloseRange

func CloseRange(FirstFd uint32, LastFd uint32, Flags uint32) error

func CreateMemfd

func CreateMemfd(content []byte) (*os.File, error)

CreateMemfd creates a new memfd for the provided byte slice.

func PidFdOpen

func PidFdOpen(Pid int, Flags uint32) (*os.File, error)

func PidfdSendSignal

func PidfdSendSignal(Pidfd int, Signal int, Flags uint32) error

func ReadPid

func ReadPid(r *os.File) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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