xref: /linux-6.15/include/uapi/linux/nsfs.h (revision e5ff5ce6)
1 #ifndef __LINUX_NSFS_H
2 #define __LINUX_NSFS_H
3 
4 #include <linux/ioctl.h>
5 
6 #define NSIO	0xb7
7 
8 /* Returns a file descriptor that refers to an owning user namespace */
9 #define NS_GET_USERNS	_IO(NSIO, 0x1)
10 /* Returns a file descriptor that refers to a parent namespace */
11 #define NS_GET_PARENT	_IO(NSIO, 0x2)
12 /* Returns the type of namespace (CLONE_NEW* value) referred to by
13    file descriptor */
14 #define NS_GET_NSTYPE	_IO(NSIO, 0x3)
15 
16 #endif /* __LINUX_NSFS_H */
17