118382Sphk/* SPDX-License-Identifier: GPL-2.0 */ 23027Srgrimes#ifndef __PROCFS_FD_H__ 36718Sphk#define __PROCFS_FD_H__ 46718Sphk 56718Sphk#include <linux/fs.h> 66718Sphk 76718Sphkextern const struct file_operations proc_fd_operations; 86718Sphkextern const struct inode_operations proc_fd_inode_operations; 96718Sphk 106718Sphkextern const struct file_operations proc_fdinfo_operations; 116718Sphkextern const struct inode_operations proc_fdinfo_inode_operations; 128778Sjkh 138034Sphkextern int proc_fd_permission(struct mnt_idmap *idmap, 1415786Sjkh struct inode *inode, int mask); 1515786Sjkh 168034Sphkstatic inline unsigned int proc_fd(struct inode *inode) 1713124Sjoerg{ 188034Sphk return PROC_I(inode)->fd; 196718Sphk} 207107Sphk 2113133Sjoerg#endif /* __PROCFS_FD_H__ */ 229202Srgrimes