blob: 5deaddbd79278fb9954833da36a3c5444d4c6ead [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Davide Libenzi5dc8bf82007-05-10 22:23:11 -07002/*
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 Stanislawskie46ebd22011-07-12 11:27:20 +020012struct file_operations;
Daniel Colascionee7e832c2021-01-08 14:22:21 -080013struct inode;
Tomasz Stanislawskie46ebd22011-07-12 11:27:20 +020014
Davide Libenzi562787a2009-09-22 16:43:57 -070015struct file *anon_inode_getfile(const char *name,
16 const struct file_operations *fops,
17 void *priv, int flags);
Paul Moore3a862ca2021-02-01 19:22:44 -050018struct 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 Viro2030a42c2008-02-23 06:46:49 -050022int anon_inode_getfd(const char *name, const struct file_operations *fops,
Ulrich Drepper7d9dbca2008-07-23 21:29:22 -070023 void *priv, int flags);
Daniel Colascionee7e832c2021-01-08 14:22:21 -080024int 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 Libenzi5dc8bf82007-05-10 22:23:11 -070028
29#endif /* _LINUX_ANON_INODES_H */
30