nsioctl

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package nsioctl defines namespace-related ioctl request values that aren't defined in the sys/unix standard package.

References

  • See also ioctl_ns(2) for details about the namespace-related ioctl operations.
  • For background information on getting the network namespace of a TAP/TUN netdev please refer to TUNGETDEVNETNS.

Index

Constants

This section is empty.

Variables

View Source
var (
	// NS_GET_USERNS returns a file descriptor that refers to an owning user
	// namespace.
	NS_GET_USERNS = ioctl.IO(_NSIO, 0x1)
	// NS_GET_PARENT returns a file descriptor that refers to a parent
	// namespace.
	NS_GET_PARENT = ioctl.IO(_NSIO, 0x2)
	// NS_GET_NSTYPE returns the type of namespace CLONE_NEW* value referred to
	// by a file descriptor.
	NS_GET_NSTYPE = ioctl.IO(_NSIO, 0x3)
	// NS_GET_OWNER_UID gets the owner UID (in the caller's user namespace) for
	// a user namespace.
	NS_GET_OWNER_UID = ioctl.IO(_NSIO, 0x4)

	// TUNGETDEVNETNS returns a file descriptor that refers the the network
	// namespace of the TAP/TUN netdev.
	TUNGETDEVNETNS = ioctl.IO('T', 227)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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