Linux Kernel
3.7.1
|
#include <linux/cred.h>
#include <linux/file.h>
#include <linux/poll.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/magic.h>
#include <linux/anon_inodes.h>
#include <asm/uaccess.h>
Go to the source code of this file.
Functions | |
: [in] name of the "class" of the new file | |
anon_inode_getfd - creates a new file instance by hooking it up to an anonymous inode, and a dentry that describe the "class" of the file : [in] file operations for the new file : [in] private data for the new file (will be file's private_data) : [in] flags Creates a new file by hooking it on a single inode. This is useful for files that do not need to have a full-fledged inode in order to operate correctly. All the files created with anon_inode_getfd() will share a single inode, hence saving memory and avoiding code duplication for the file/inode/dentry setup. Returns new descriptor or an error code. | |
struct file * | anon_inode_getfile (const char *name, const struct file_operations *fops, void *priv, int flags) |
EXPORT_SYMBOL_GPL (anon_inode_getfile) | |
int | anon_inode_getfd (const char *name, const struct file_operations *fops, void *priv, int flags) |
EXPORT_SYMBOL_GPL (anon_inode_getfd) | |
fs_initcall (anon_inode_init) | |
int anon_inode_getfd | ( | const char * | name, |
const struct file_operations * | fops, | ||
void * | priv, | ||
int | flags | ||
) |
Definition at line 200 of file anon_inodes.c.
|
read |
Definition at line 127 of file anon_inodes.c.
EXPORT_SYMBOL_GPL | ( | anon_inode_getfile | ) |
EXPORT_SYMBOL_GPL | ( | anon_inode_getfd | ) |
fs_initcall | ( | anon_inode_init | ) |