blob: 870afe7c36b2163df6f5ba35de876c67acd861d8 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris6a9755d2017-01-13 14:09:31 -08007#ifndef __LINUX_NSFS_H
8#define __LINUX_NSFS_H
9#include <linux/ioctl.h>
Christopher Ferris63fcca42024-09-26 01:12:10 +000010#include <linux/types.h>
Christopher Ferris6a9755d2017-01-13 14:09:31 -080011#define NSIO 0xb7
Christopher Ferris6a9755d2017-01-13 14:09:31 -080012#define NS_GET_USERNS _IO(NSIO, 0x1)
13#define NS_GET_PARENT _IO(NSIO, 0x2)
Christopher Ferris525ce912017-07-26 13:12:53 -070014#define NS_GET_NSTYPE _IO(NSIO, 0x3)
15#define NS_GET_OWNER_UID _IO(NSIO, 0x4)
Christopher Ferris63fcca42024-09-26 01:12:10 +000016#define NS_GET_MNTNS_ID _IOR(NSIO, 0x5, __u64)
17#define NS_GET_PID_FROM_PIDNS _IOR(NSIO, 0x6, int)
18#define NS_GET_TGID_FROM_PIDNS _IOR(NSIO, 0x7, int)
19#define NS_GET_PID_IN_PIDNS _IOR(NSIO, 0x8, int)
20#define NS_GET_TGID_IN_PIDNS _IOR(NSIO, 0x9, int)
Christopher Ferris65552ba2024-11-20 17:55:06 +000021struct mnt_ns_info {
22 __u32 size;
23 __u32 nr_mounts;
24 __u64 mnt_ns_id;
25};
26#define MNT_NS_INFO_SIZE_VER0 16
27#define NS_MNT_GET_INFO _IOR(NSIO, 10, struct mnt_ns_info)
28#define NS_MNT_GET_NEXT _IOR(NSIO, 11, struct mnt_ns_info)
29#define NS_MNT_GET_PREV _IOR(NSIO, 12, struct mnt_ns_info)
Christopher Ferris6a9755d2017-01-13 14:09:31 -080030#endif