diff options
Diffstat (limited to 'include/linux/proc_fs.h')
-rw-r--r-- | include/linux/proc_fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index 928ef9e4d912..4edcde510631 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
@@ -83,4 +83,10 @@ struct ns_common; | |||
83 | int open_related_ns(struct ns_common *ns, | 83 | int open_related_ns(struct ns_common *ns, |
84 | struct ns_common *(*get_ns)(struct ns_common *ns)); | 84 | struct ns_common *(*get_ns)(struct ns_common *ns)); |
85 | 85 | ||
86 | /* get the associated pid namespace for a file in procfs */ | ||
87 | static inline struct pid_namespace *proc_pid_ns(struct inode *inode) | ||
88 | { | ||
89 | return inode->i_sb->s_fs_info; | ||
90 | } | ||
91 | |||
86 | #endif /* _LINUX_PROC_FS_H */ | 92 | #endif /* _LINUX_PROC_FS_H */ |