aboutsummaryrefslogtreecommitdiffstats
path: root/man/man2/ioctl_nsfs.2
blob: f8d53a3e1c061cc413636c98decaf9d36c926f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.TH ioctl_nsfs 2 (date) "Linux man-pages (unreleased)"
.SH NAME
ioctl_nsfs
\-
ioctl() operations for Linux namespaces
.SH SYNOPSIS
.nf
.BR "#include <linux/nsfs.h>" "  /* Definition of " NS_* " constants */"
.B #include <sys/ioctl.h>
.P
.BI "int ioctl(int " fd ", unsigned long " op ", ...);"
.fi
.SH DESCRIPTION
.SS Discovering namespace relationships
.TP
.BR NS_GET_USERNS (2const)
.TQ
.BR NS_GET_PARENT (2const)
.SS Discovering the namespace type
.TP
.BR NS_GET_NSTYPE (2const)
.SS Discovering the owner of a user namespace
.TP
.BR NS_GET_OWNER_UID (2const)
.SH ERRORS
.TP
.B ENOTTY
.I fd
does not refer to a
.IR /proc/ pid /ns/ *
file.
.SH STANDARDS
Linux.
.SH SEE ALSO
.BR ioctl (2),
.BR fstat (2),
.BR proc (5),
.BR namespaces (7)