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.
Click to show internal directories.
Click to hide internal directories.