cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

fd.h (583B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      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
     13extern int proc_fd_permission(struct user_namespace *mnt_userns,
     14			      struct inode *inode, int mask);
     15
     16static inline unsigned int proc_fd(struct inode *inode)
     17{
     18	return PROC_I(inode)->fd;
     19}
     20
     21#endif /* __PROCFS_FD_H__ */