]> Git Repo - linux.git/blame - fs/proc/fd.h
filelock: Remove locks reliably when fcntl/close race is detected
[linux.git] / fs / proc / fd.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
faf60af1
CG
2#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
4609e1f1 13extern int proc_fd_permission(struct mnt_idmap *idmap,
549c7297 14 struct inode *inode, int mask);
faf60af1 15
771187d6 16static inline unsigned int proc_fd(struct inode *inode)
c3bef7bc
DH
17{
18 return PROC_I(inode)->fd;
19}
20
faf60af1 21#endif /* __PROCFS_FD_H__ */
This page took 0.658661 seconds and 4 git commands to generate.