ioctl_nsfs(2)

bestie!!! welcome to ioctl_nsfs(2), aka the System Calls Manual page for ioctl() operations that deal with Linux namespaces. it's giving very niche, very powerful, very "trust me i know what i'm doing" πŸ’…

πŸŽ€ NAME πŸŽ€

ioctl_nsfs β€” ioctl() operations for Linux namespaces. periodt.

✨ SYNOPSIS ✨

#include <linux/nsfs.h>  /* Definition of NS_* constants */
#include <sys/ioctl.h>

int ioctl(int fd, unsigned long op, ...);

πŸ’– DESCRIPTION πŸ’–

okay so this whole page is the lil hub for namespace-flavored ioctl() ops. it doesn't spill every detail itself; it points you to the specific 2const pages. no cap.

πŸ¦‹ Discovering namespace relationships πŸ¦‹

this is the relationship lore section, bestie:

πŸ” Discovering the namespace type πŸ”

πŸ‘‘ Discovering the owner of a user namespace πŸ‘‘

😭 ERRORS 😭

  • ENOTTY β€” fd does not refer to a /proc/pid/ns/* file.

so if you see this, the file descriptor is not giving namespace file energy. check yourself before you wreck yourself 🫢

🌈 STANDARDS 🌈

Linux.

πŸ‘€ SEE ALSO πŸ‘€


okay that's the page!! mwah πŸ’‹ this one came from Linux man-pages 6.20, dated 2026-02-08. go be iconic with your namespaces, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms