xref: /openbmc/linux/include/linux/anon_inodes.h (revision 3a862cac)
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;
13e7e832ceSDaniel 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);
18*3a862cacSPaul Moore struct file *anon_inode_getfile_secure(const char *name,
19*3a862cacSPaul Moore 				       const struct file_operations *fops,
20*3a862cacSPaul Moore 				       void *priv, int flags,
21*3a862cacSPaul Moore 				       const struct inode *context_inode);
222030a42cSAl Viro int anon_inode_getfd(const char *name, const struct file_operations *fops,
237d9dbca3SUlrich Drepper 		     void *priv, int flags);
24e7e832ceSDaniel Colascione int anon_inode_getfd_secure(const char *name,
25e7e832ceSDaniel Colascione 			    const struct file_operations *fops,
26e7e832ceSDaniel Colascione 			    void *priv, int flags,
27e7e832ceSDaniel Colascione 			    const struct inode *context_inode);
285dc8bf81SDavide Libenzi 
295dc8bf81SDavide Libenzi #endif /* _LINUX_ANON_INODES_H */
305dc8bf81SDavide Libenzi 
31