blob: f371a602bf5856d7381ded1d3bbe91f00e2634c1 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Cyrill Gorcunovfaf60af2012-08-23 14:43:24 +04002#ifndef __PROCFS_FD_H__
3#define __PROCFS_FD_H__
4
5#include <linux/fs.h>
6
7extern const struct file_operations proc_fd_operations;
8extern const struct inode_operations proc_fd_inode_operations;
9
10extern const struct file_operations proc_fdinfo_operations;
11extern const struct inode_operations proc_fdinfo_inode_operations;
12
13extern int proc_fd_permission(struct inode *inode, int mask);
14
Alexey Dobriyan771187d2016-09-02 00:42:02 +030015static inline unsigned int proc_fd(struct inode *inode)
David Howellsc3bef7b2013-04-12 01:42:56 +010016{
17 return PROC_I(inode)->fd;
18}
19
Cyrill Gorcunovfaf60af2012-08-23 14:43:24 +040020#endif /* __PROCFS_FD_H__ */