xref: /openbmc/linux/include/linux/anon_inodes.h (revision e7e832ce)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
25dc8bf81SDavide Libenzi /*
35dc8bf81SDavide Libenzi  *  include/linux/anon_inodes.h
45dc8bf81SDavide Libenzi  *
55dc8bf81SDavide Libenzi  *  Copyright (C) 2007  Davide Libenzi <davidel@xmailserver.org>
65dc8bf81SDavide Libenzi  *
75dc8bf81SDavide Libenzi  */
85dc8bf81SDavide Libenzi 
95dc8bf81SDavide Libenzi #ifndef _LINUX_ANON_INODES_H
105dc8bf81SDavide Libenzi #define _LINUX_ANON_INODES_H
115dc8bf81SDavide Libenzi 
12e46ebd27STomasz Stanislawski struct file_operations;
13*e7e832ceSDaniel Colascione struct inode;
14e46ebd27STomasz Stanislawski 
15562787a5SDavide Libenzi struct file *anon_inode_getfile(const char *name,
16562787a5SDavide Libenzi 				const struct file_operations *fops,
17562787a5SDavide Libenzi 				void *priv, int flags);
182030a42cSAl Viro int anon_inode_getfd(const char *name, const struct file_operations *fops,
197d9dbca3SUlrich Drepper 		     void *priv, int flags);
20*e7e832ceSDaniel Colascione int anon_inode_getfd_secure(const char *name,
21*e7e832ceSDaniel Colascione 			    const struct file_operations *fops,
22*e7e832ceSDaniel Colascione 			    void *priv, int flags,
23*e7e832ceSDaniel Colascione 			    const struct inode *context_inode);
245dc8bf81SDavide Libenzi 
255dc8bf81SDavide Libenzi #endif /* _LINUX_ANON_INODES_H */
265dc8bf81SDavide Libenzi 
27