Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / linux / anon_inodes.h
blobedef565c2a1a141409b6c6984a695226f9697bf7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * include/linux/anon_inodes.h
5 * Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
7 */
9 #ifndef _LINUX_ANON_INODES_H
10 #define _LINUX_ANON_INODES_H
12 #include <linux/types.h>
14 struct file_operations;
15 struct inode;
17 struct file *anon_inode_getfile(const char *name,
18 const struct file_operations *fops,
19 void *priv, int flags);
20 struct file *anon_inode_getfile_fmode(const char *name,
21 const struct file_operations *fops,
22 void *priv, int flags, fmode_t f_mode);
23 struct file *anon_inode_create_getfile(const char *name,
24 const struct file_operations *fops,
25 void *priv, int flags,
26 const struct inode *context_inode);
27 int anon_inode_getfd(const char *name, const struct file_operations *fops,
28 void *priv, int flags);
29 int anon_inode_create_getfd(const char *name,
30 const struct file_operations *fops,
31 void *priv, int flags,
32 const struct inode *context_inode);
34 #endif /* _LINUX_ANON_INODES_H */