2012-01-26 15:27:00 +04:00
|
|
|
#ifndef __CR_NS_H__
|
|
|
|
#define __CR_NS_H__
|
2012-06-19 15:53:00 +04:00
|
|
|
|
|
|
|
#include "crtools.h"
|
2012-10-08 18:59:36 +04:00
|
|
|
#include "pstree.h"
|
2012-06-19 15:53:00 +04:00
|
|
|
|
|
|
|
int dump_namespaces(struct pid *pid, unsigned int ns_flags);
|
2012-01-26 15:27:00 +04:00
|
|
|
int prepare_namespace(int pid, unsigned long clone_flags);
|
2012-03-27 12:01:14 +04:00
|
|
|
struct cr_options;
|
|
|
|
int try_show_namespaces(int pid, struct cr_options *);
|
2012-08-02 07:55:05 +04:00
|
|
|
int switch_ns(int pid, int type, char *ns, int *rst);
|
|
|
|
int restore_ns(int rst, int type);
|
2012-12-25 22:40:24 +04:00
|
|
|
|
|
|
|
#endif /* __CR_NS_H__ */
|