Files

36 lines
1021 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
/*
* include/linux/anon_inodes.h
*
* Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
*
*/
#ifndef _LINUX_ANON_INODES_H
#define _LINUX_ANON_INODES_H
2024-04-26 09:58:54 +02:00
#include <linux/types.h>
2011-07-12 11:27:20 +02:00
struct file_operations;
2021-01-08 14:22:21 -08:00
struct inode;
2011-07-12 11:27:20 +02:00
struct file *anon_inode_getfile(const char *name,
const struct file_operations *fops,
void *priv, int flags);
2024-04-26 09:58:54 +02:00
struct file *anon_inode_getfile_fmode(const char *name,
const struct file_operations *fops,
void *priv, int flags, fmode_t f_mode);
struct file *anon_inode_create_getfile(const char *name,
const struct file_operations *fops,
void *priv, int flags,
const struct inode *context_inode);
2008-02-23 06:46:49 -05:00
int anon_inode_getfd(const char *name, const struct file_operations *fops,
2008-07-23 21:29:22 -07:00
void *priv, int flags);
int anon_inode_create_getfd(const char *name,
2021-01-08 14:22:21 -08:00
const struct file_operations *fops,
void *priv, int flags,
const struct inode *context_inode);
#endif /* _LINUX_ANON_INODES_H */