blob: 7c047f256ae2ccb945aab10d8688d6305b5a0eb7 [file] [log] [blame]
Cyrill Gorcunovfaf60af2012-08-23 14:43:24 +04001#ifndef __PROCFS_FD_H__
2#define __PROCFS_FD_H__
3
4#include <linux/fs.h>
5
6extern const struct file_operations proc_fd_operations;
7extern const struct inode_operations proc_fd_inode_operations;
8
9extern const struct file_operations proc_fdinfo_operations;
10extern const struct inode_operations proc_fdinfo_inode_operations;
11
12extern int proc_fd_permission(struct inode *inode, int mask);
13
David Howellsc3bef7b2013-04-12 01:42:56 +010014static inline int proc_fd(struct inode *inode)
15{
16 return PROC_I(inode)->fd;
17}
18
Cyrill Gorcunovfaf60af2012-08-23 14:43:24 +040019#endif /* __PROCFS_FD_H__ */