fd.h 491 B

12345678910111213141516171819
  1. #ifndef __PROCFS_FD_H__
  2. #define __PROCFS_FD_H__
  3. #include <linux/fs.h>
  4. extern const struct file_operations proc_fd_operations;
  5. extern const struct inode_operations proc_fd_inode_operations;
  6. extern const struct file_operations proc_fdinfo_operations;
  7. extern const struct inode_operations proc_fdinfo_inode_operations;
  8. extern int proc_fd_permission(struct inode *inode, int mask);
  9. static inline int proc_fd(struct inode *inode)
  10. {
  11. return PROC_I(inode)->fd;
  12. }
  13. #endif /* __PROCFS_FD_H__ */