aboutsummaryrefslogtreecommitdiffstats
path: root/man/man2/ioctl_nsfs.2
diff options
context:
space:
mode:
Diffstat (limited to 'man/man2/ioctl_nsfs.2')
-rw-r--r--man/man2/ioctl_nsfs.247
1 files changed, 47 insertions, 0 deletions
diff --git a/man/man2/ioctl_nsfs.2 b/man/man2/ioctl_nsfs.2
new file mode 100644
index 0000000000..4c728ba993
--- /dev/null
+++ b/man/man2/ioctl_nsfs.2
@@ -0,0 +1,47 @@
+.\" Copyright 2017, Michael Kerrisk <mtk.manpages@gmail.com>
+.\" Copyright 2024, Alejandro Colomar <alx@kernel.org>
+.\"
+.\" 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
+.B NS_GET_USERNS
+.TQ
+.B NS_GET_PARENT
+.SS Discovering the namespace type
+.TP
+.B NS_GET_NSTYPE
+.SS Discovering the owner of a user namespace
+.TP
+.B NS_GET_OWNER_UID
+.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 NS_GET_USERNS (2const),
+.BR NS_GET_PARENT (2const),
+.BR NS_GET_NSTYPE (2const),
+.BR NS_GET_OWNER_UID (2const),
+.BR fstat (2),
+.BR proc (5),
+.BR namespaces (7)