xref: /kernel/linux/linux-5.10/fs/proc/fd.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/fs/proc/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __PROCFS_FD_H__
38c2ecf20Sopenharmony_ci#define __PROCFS_FD_H__
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/fs.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciextern const struct file_operations proc_fd_operations;
88c2ecf20Sopenharmony_ciextern const struct inode_operations proc_fd_inode_operations;
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciextern const struct file_operations proc_fdinfo_operations;
118c2ecf20Sopenharmony_ciextern const struct inode_operations proc_fdinfo_inode_operations;
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciextern int proc_fd_permission(struct inode *inode, int mask);
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistatic inline unsigned int proc_fd(struct inode *inode)
168c2ecf20Sopenharmony_ci{
178c2ecf20Sopenharmony_ci	return PROC_I(inode)->fd;
188c2ecf20Sopenharmony_ci}
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#endif /* __PROCFS_FD_H__ */
21

Indexes created Thu Nov 07 10:32:03 CST 2024