Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Davide Libenzi | 5dc8bf8 | 2007-05-10 22:23:11 -0700 | [diff] [blame] | 2 | /* |
| 3 | * include/linux/anon_inodes.h |
| 4 | * |
| 5 | * Copyright (C) 2007 Davide Libenzi <[email protected]> |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #ifndef _LINUX_ANON_INODES_H |
| 10 | #define _LINUX_ANON_INODES_H |
| 11 | |
Tomasz Stanislawski | e46ebd2 | 2011-07-12 11:27:20 +0200 | [diff] [blame] | 12 | struct file_operations; |
Daniel Colascione | e7e832c | 2021-01-08 14:22:21 -0800 | [diff] [blame] | 13 | struct inode; |
Tomasz Stanislawski | e46ebd2 | 2011-07-12 11:27:20 +0200 | [diff] [blame] | 14 | |
Davide Libenzi | 562787a | 2009-09-22 16:43:57 -0700 | [diff] [blame] | 15 | struct file *anon_inode_getfile(const char *name, |
| 16 | const struct file_operations *fops, |
| 17 | void *priv, int flags); |
Paul Moore | 3a862ca | 2021-02-01 19:22:44 -0500 | [diff] [blame] | 18 | struct file *anon_inode_getfile_secure(const char *name, |
| 19 | const struct file_operations *fops, |
| 20 | void *priv, int flags, |
| 21 | const struct inode *context_inode); |
Al Viro | 2030a42c | 2008-02-23 06:46:49 -0500 | [diff] [blame] | 22 | int anon_inode_getfd(const char *name, const struct file_operations *fops, |
Ulrich Drepper | 7d9dbca | 2008-07-23 21:29:22 -0700 | [diff] [blame] | 23 | void *priv, int flags); |
Daniel Colascione | e7e832c | 2021-01-08 14:22:21 -0800 | [diff] [blame] | 24 | int anon_inode_getfd_secure(const char *name, |
| 25 | const struct file_operations *fops, |
| 26 | void *priv, int flags, |
| 27 | const struct inode *context_inode); |
Davide Libenzi | 5dc8bf8 | 2007-05-10 22:23:11 -0700 | [diff] [blame] | 28 | |
| 29 | #endif /* _LINUX_ANON_INODES_H */ |
| 30 | |