Sukadev Bhattiprolu | aa5a666 | 2006-10-02 02:17:23 -0700 | [diff] [blame] | 1 | #ifndef _LINUX_PSPACE_H |
| 2 | #define _LINUX_PSPACE_H |
| 3 | |
| 4 | #include <linux/sched.h> |
| 5 | #include <linux/mm.h> |
| 6 | #include <linux/threads.h> |
| 7 | #include <linux/pid.h> |
| 8 | |
| 9 | struct pidmap { |
| 10 | atomic_t nr_free; |
| 11 | void *page; |
| 12 | }; |
| 13 | |
| 14 | #define PIDMAP_ENTRIES ((PID_MAX_LIMIT + 8*PAGE_SIZE - 1)/PAGE_SIZE/8) |
| 15 | |
Sukadev Bhattiprolu | 3fbc964 | 2006-10-02 02:17:24 -0700 | [diff] [blame] | 16 | struct pspace { |
| 17 | struct pidmap pidmap[PIDMAP_ENTRIES]; |
| 18 | int last_pid; |
| 19 | }; |
| 20 | |
| 21 | extern struct pspace init_pspace; |
| 22 | |
Sukadev Bhattiprolu | aa5a666 | 2006-10-02 02:17:23 -0700 | [diff] [blame] | 23 | #endif /* _LINUX_PSPACE_H */ |