1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_PID_TYPES_H 3 #define _LINUX_PID_TYPES_H 4 5 #include <linux/build_bug.h> 6 7 enum pid_type { 8 PIDTYPE_PID, 9 PIDTYPE_TGID, 10 PIDTYPE_PGID, 11 PIDTYPE_SID, 12 PIDTYPE_MAX, 13 }; 14 15 struct pid; 16 17 /* An array of struct pid indexed by pid type, PIDTYPE_PID up to @last. */ 18 #define DECLARE_PIDS(name, last) \ 19 struct pid *name[(last) + 1 + BUILD_BUG_ON_ZERO((last) >= PIDTYPE_MAX)] 20 21 struct pid_namespace; 22 extern struct pid_namespace init_pid_ns; 23 24 #endif /* _LINUX_PID_TYPES_H */ 25