Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  include/linux/anon_inodes.h
0004  *
0005  *  Copyright (C) 2007  Davide Libenzi <davidel@xmailserver.org>
0006  *
0007  */
0008 
0009 #ifndef _LINUX_ANON_INODES_H
0010 #define _LINUX_ANON_INODES_H
0011 
0012 struct file_operations;
0013 struct inode;
0014 
0015 struct file *anon_inode_getfile(const char *name,
0016                 const struct file_operations *fops,
0017                 void *priv, int flags);
0018 struct file *anon_inode_getfile_secure(const char *name,
0019                        const struct file_operations *fops,
0020                        void *priv, int flags,
0021                        const struct inode *context_inode);
0022 int anon_inode_getfd(const char *name, const struct file_operations *fops,
0023              void *priv, int flags);
0024 int anon_inode_getfd_secure(const char *name,
0025                 const struct file_operations *fops,
0026                 void *priv, int flags,
0027                 const struct inode *context_inode);
0028 
0029 #endif /* _LINUX_ANON_INODES_H */
0030