]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - include/linux/pid_namespace.h
[PATCH] rename struct pspace to struct pid_namespace
[mirror_ubuntu-zesty-kernel.git] / include / linux / pid_namespace.h
CommitLineData
61a58c6c
SB
1#ifndef _LINUX_PID_NS_H
2#define _LINUX_PID_NS_H
aa5a6662
SB
3
4#include <linux/sched.h>
5#include <linux/mm.h>
6#include <linux/threads.h>
7#include <linux/pid.h>
8
9struct 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
61a58c6c 16struct pid_namespace {
3fbc9648
SB
17 struct pidmap pidmap[PIDMAP_ENTRIES];
18 int last_pid;
19};
20
61a58c6c 21extern struct pid_namespace init_pid_ns;
3fbc9648 22
61a58c6c 23#endif /* _LINUX_PID_NS_H */