Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
nsproxy.c File Reference
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/nsproxy.h>
#include <linux/init_task.h>
#include <linux/mnt_namespace.h>
#include <linux/utsname.h>
#include <linux/pid_namespace.h>
#include <net/net_namespace.h>
#include <linux/ipc_namespace.h>
#include <linux/proc_fs.h>
#include <linux/file.h>
#include <linux/syscalls.h>

Go to the source code of this file.

Functions

int copy_namespaces (unsigned long flags, struct task_struct *tsk)
 
void free_nsproxy (struct nsproxy *ns)
 
int unshare_nsproxy_namespaces (unsigned long unshare_flags, struct nsproxy **new_nsp, struct fs_struct *new_fs)
 
void switch_task_namespaces (struct task_struct *p, struct nsproxy *new)
 
void exit_task_namespaces (struct task_struct *p)
 
 SYSCALL_DEFINE2 (setns, int, fd, int, nstype)
 
int __init nsproxy_cache_init (void)
 

Variables

struct nsproxy init_nsproxy
 

Function Documentation

int copy_namespaces ( unsigned long  flags,
struct task_struct tsk 
)

Definition at line 122 of file nsproxy.c.

void exit_task_namespaces ( struct task_struct p)

Definition at line 230 of file nsproxy.c.

void free_nsproxy ( struct nsproxy ns)

Definition at line 167 of file nsproxy.c.

int __init nsproxy_cache_init ( void  )

Definition at line 274 of file nsproxy.c.

void switch_task_namespaces ( struct task_struct p,
struct nsproxy new 
)

Definition at line 208 of file nsproxy.c.

SYSCALL_DEFINE2 ( setns  ,
int  ,
fd  ,
int  ,
nstype   
)

Definition at line 235 of file nsproxy.c.

int unshare_nsproxy_namespaces ( unsigned long  unshare_flags,
struct nsproxy **  new_nsp,
struct fs_struct new_fs 
)

Definition at line 185 of file nsproxy.c.

Variable Documentation

struct nsproxy init_nsproxy
Initial value:
= {
.count = ATOMIC_INIT(1),
.uts_ns = &init_uts_ns,
.mnt_ns = NULL,
.pid_ns = &init_pid_ns,
}

Definition at line 31 of file nsproxy.c.