process

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NAGetProcesses

func NAGetProcesses(tasks *[]Task) neslink.NsAction

NAGetProcesses creates an action that when run will populate the given Task slice with the tasks that reside in the given the executing network namespace.

Types

type Task

type Task struct {
	// contains filtered or unexported fields
}

Task represents an OS task.

func (Task) NsDev

func (t Task) NsDev() uint64

NsDev returns the network ns Dev ID for the task.

func (Task) NsInode

func (t Task) NsInode() uint64

NsInode returns the network ns Inode ID for the task.

func (Task) Process

func (t Task) Process() int

Process returns the process ID of the task.

func (Task) RootTask added in v0.4.1

func (t Task) RootTask() bool

RootTask returns true if the task and process ids are equal.

func (Task) Task

func (t Task) Task() int

Task returns the task ID.

Jump to

Keyboard shortcuts

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