| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * include/linux/anon_inodes.h |
| 4 | * |
| 5 | * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org> |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #ifndef _LINUX_ANON_INODES_H |
| 10 | #define _LINUX_ANON_INODES_H |
| 11 | |
| 12 | #include <linux/types.h> |
| 13 | |
| 14 | struct file_operations; |
| 15 | struct inode; |
| 16 | |
| 17 | struct file *anon_inode_getfile(const char *name, |
| 18 | const struct file_operations *fops, |
| 19 | void *priv, int flags); |
| 20 | struct file *anon_inode_getfile_fmode(const char *name, |
| 21 | const struct file_operations *fops, |
| 22 | void *priv, int flags, fmode_t f_mode); |
| 23 | struct file *anon_inode_create_getfile(const char *name, |
| 24 | const struct file_operations *fops, |
| 25 | void *priv, int flags, |
| 26 | const struct inode *context_inode); |
| 27 | int anon_inode_getfd(const char *name, const struct file_operations *fops, |
| 28 | void *priv, int flags); |
| 29 | int anon_inode_create_getfd(const char *name, |
| 30 | const struct file_operations *fops, |
| 31 | void *priv, int flags, |
| 32 | const struct inode *context_inode); |
| 33 | |
| 34 | #endif /* _LINUX_ANON_INODES_H */ |
| 35 | |
| 36 | |