pid_namespace.h 455 B

1234567891011121314151617181920212223
  1. #ifndef _LINUX_PID_NS_H
  2. #define _LINUX_PID_NS_H
  3. #include <linux/sched.h>
  4. #include <linux/mm.h>
  5. #include <linux/threads.h>
  6. #include <linux/pid.h>
  7. struct pidmap {
  8. atomic_t nr_free;
  9. void *page;
  10. };
  11. #define PIDMAP_ENTRIES ((PID_MAX_LIMIT + 8*PAGE_SIZE - 1)/PAGE_SIZE/8)
  12. struct pid_namespace {
  13. struct pidmap pidmap[PIDMAP_ENTRIES];
  14. int last_pid;
  15. };
  16. extern struct pid_namespace init_pid_ns;
  17. #endif /* _LINUX_PID_NS_H */