diff options
Diffstat (limited to 'include/linux/proc_ns.h')
| -rw-r--r-- | include/linux/proc_ns.h | 22 | 
1 files changed, 1 insertions, 21 deletions
diff --git a/include/linux/proc_ns.h b/include/linux/proc_ns.h index 4b20375f3783..e81b8e596e4f 100644 --- a/include/linux/proc_ns.h +++ b/include/linux/proc_ns.h @@ -5,7 +5,7 @@  #ifndef _LINUX_PROC_NS_H  #define _LINUX_PROC_NS_H -#include <linux/ns_common.h> +#include <linux/nsfs.h>  #include <uapi/linux/nsfs.h>  struct pid_namespace; @@ -17,7 +17,6 @@ struct inode;  struct proc_ns_operations {  	const char *name;  	const char *real_ns_name; -	int type;  	struct ns_common *(*get)(struct task_struct *task);  	void (*put)(struct ns_common *ns);  	int (*install)(struct nsset *nsset, struct ns_common *ns); @@ -66,25 +65,6 @@ static inline void proc_free_inum(unsigned int inum) {}  #endif /* CONFIG_PROC_FS */ -static inline int ns_alloc_inum(struct ns_common *ns) -{ -	WRITE_ONCE(ns->stashed, NULL); -	return proc_alloc_inum(&ns->inum); -} - -#define ns_free_inum(ns) proc_free_inum((ns)->inum) -  #define get_proc_ns(inode) ((struct ns_common *)(inode)->i_private) -extern int ns_get_path(struct path *path, struct task_struct *task, -			const struct proc_ns_operations *ns_ops); -typedef struct ns_common *ns_get_path_helper_t(void *); -extern int ns_get_path_cb(struct path *path, ns_get_path_helper_t ns_get_cb, -			    void *private_data); - -extern bool ns_match(const struct ns_common *ns, dev_t dev, ino_t ino); - -extern int ns_get_name(char *buf, size_t size, struct task_struct *task, -			const struct proc_ns_operations *ns_ops); -extern void nsfs_init(void);  #endif /* _LINUX_PROC_NS_H */  | 
