xref: /aosp_15_r20/external/ltp/include/lapi/ioctl_ns.h (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker // SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Worker /*
3*49cdfc7eSAndroid Build Coastguard Worker  * Copyright (c) 2019 Federico Bonfiglio [email protected]
4*49cdfc7eSAndroid Build Coastguard Worker  */
5*49cdfc7eSAndroid Build Coastguard Worker 
6*49cdfc7eSAndroid Build Coastguard Worker #ifndef LAPI_IOCTL_NS_H__
7*49cdfc7eSAndroid Build Coastguard Worker #define LAPI_IOCTL_NS_H__
8*49cdfc7eSAndroid Build Coastguard Worker 
9*49cdfc7eSAndroid Build Coastguard Worker #include <asm-generic/ioctl.h>
10*49cdfc7eSAndroid Build Coastguard Worker 
11*49cdfc7eSAndroid Build Coastguard Worker #ifndef NSIO
12*49cdfc7eSAndroid Build Coastguard Worker #define NSIO	0xb7
13*49cdfc7eSAndroid Build Coastguard Worker #endif
14*49cdfc7eSAndroid Build Coastguard Worker #ifndef NS_GET_PARENT
15*49cdfc7eSAndroid Build Coastguard Worker #define NS_GET_PARENT		_IO(NSIO, 0x2)
16*49cdfc7eSAndroid Build Coastguard Worker #endif
17*49cdfc7eSAndroid Build Coastguard Worker #ifndef NS_GET_OWNER_UID
18*49cdfc7eSAndroid Build Coastguard Worker #define NS_GET_OWNER_UID	_IO(NSIO, 0x4)
19*49cdfc7eSAndroid Build Coastguard Worker #endif
20*49cdfc7eSAndroid Build Coastguard Worker #ifndef NS_GET_USERNS
21*49cdfc7eSAndroid Build Coastguard Worker #define NS_GET_USERNS		_IO(NSIO, 0x1)
22*49cdfc7eSAndroid Build Coastguard Worker #endif
23*49cdfc7eSAndroid Build Coastguard Worker #ifndef NS_GET_NSTYPE
24*49cdfc7eSAndroid Build Coastguard Worker #define NS_GET_NSTYPE		_IO(NSIO, 0x3)
25*49cdfc7eSAndroid Build Coastguard Worker #endif
26*49cdfc7eSAndroid Build Coastguard Worker 
27*49cdfc7eSAndroid Build Coastguard Worker 
28*49cdfc7eSAndroid Build Coastguard Worker #endif /* LAPI_IOCTL_NS_H__ */
29