GDB (xrefs)
Loading...
Searching...
No Matches
Enumerations | Functions | Variables
linux-namespaces.h File Reference

Go to the source code of this file.

Enumerations

enum  linux_ns_type {
  LINUX_NS_IPC , LINUX_NS_MNT , LINUX_NS_NET , LINUX_NS_PID ,
  LINUX_NS_USER , LINUX_NS_UTS , NUM_LINUX_NS_TYPES
}
 

Functions

int linux_ns_same (pid_t pid, enum linux_ns_type type)
 
int linux_mntns_open_cloexec (pid_t pid, const char *filename, int flags, mode_t mode)
 
int linux_mntns_unlink (pid_t pid, const char *filename)
 
ssize_t linux_mntns_readlink (pid_t pid, const char *filename, char *buf, size_t bufsiz)
 

Variables

bool debug_linux_namespaces
 

Enumeration Type Documentation

◆ linux_ns_type

Enumerator
LINUX_NS_IPC 
LINUX_NS_MNT 
LINUX_NS_NET 
LINUX_NS_PID 
LINUX_NS_USER 
LINUX_NS_UTS 
NUM_LINUX_NS_TYPES 

Definition at line 29 of file linux-namespaces.h.

Function Documentation

◆ linux_mntns_open_cloexec()

int linux_mntns_open_cloexec ( pid_t pid,
const char * filename,
int flags,
mode_t mode )
extern

◆ linux_mntns_readlink()

ssize_t linux_mntns_readlink ( pid_t pid,
const char * filename,
char * buf,
size_t bufsiz )
extern

◆ linux_mntns_unlink()

int linux_mntns_unlink ( pid_t pid,
const char * filename )
extern

◆ linux_ns_same()

int linux_ns_same ( pid_t pid,
enum linux_ns_type type )
extern

Variable Documentation

◆ debug_linux_namespaces

bool debug_linux_namespaces
extern

Definition at line 34 of file linux-namespaces.c.

Referenced by linux_mntns_get_helper(), mnsh_recv_message(), and mnsh_send_message().