linux/include/uapi/linux/nsfs.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef __LINUX_NSFS_H
#define __LINUX_NSFS_H

#include <linux/ioctl.h>
#include <linux/types.h>

#define NSIO

/* Returns a file descriptor that refers to an owning user namespace */
#define NS_GET_USERNS
/* Returns a file descriptor that refers to a parent namespace */
#define NS_GET_PARENT
/* Returns the type of namespace (CLONE_NEW* value) referred to by
   file descriptor */
#define NS_GET_NSTYPE
/* Get owner UID (in the caller's user namespace) for a user namespace */
#define NS_GET_OWNER_UID
/* Get the id for a mount namespace */
#define NS_GET_MNTNS_ID
/* Translate pid from target pid namespace into the caller's pid namespace. */
#define NS_GET_PID_FROM_PIDNS
/* Return thread-group leader id of pid in the callers pid namespace. */
#define NS_GET_TGID_FROM_PIDNS
/* Translate pid from caller's pid namespace into a target pid namespace. */
#define NS_GET_PID_IN_PIDNS
/* Return thread-group leader id of pid in the target pid namespace. */
#define NS_GET_TGID_IN_PIDNS

struct mnt_ns_info {};

#define MNT_NS_INFO_SIZE_VER0

/* Get information about namespace. */
#define NS_MNT_GET_INFO
/* Get next namespace. */
#define NS_MNT_GET_NEXT
/* Get previous namespace. */
#define NS_MNT_GET_PREV

#endif /* __LINUX_NSFS_H */