pidfd

package module
v0.0.0-...-9b42cd4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PidFd

type PidFd int

PidFd, a file descriptor that refers to a process.

func Open

func Open(pid int, flags uint) (PidFd, error)

Open obtains a file descriptor that refers to a process.

The flags argument is reserved for future use; currently, this argument must be specified as 0.

func (PidFd) GetFd

func (fd PidFd) GetFd(targetfd int, flags uint) (int, error)

GetFd obtain a duplicate of another process's file descriptor.

The flags argument is reserved for future use; currently, this argument must be specified as 0.

func (PidFd) SendSignal

func (fd PidFd) SendSignal(signal syscall.Signal, flags uint) error

SendSignal send a signal to a process specified by a PidFd.

The flags argument is reserved for future use; currently, this argument must be specified as 0.

Jump to

Keyboard shortcuts

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