Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
vfs_file.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/file.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/inet.h>
#include <linux/list.h>
#include <linux/pagemap.h>
#include <linux/utsname.h>
#include <asm/uaccess.h>
#include <linux/idr.h>
#include <net/9p/9p.h>
#include <net/9p/client.h>
#include "v9fs.h"
#include "v9fs_vfs.h"
#include "fid.h"
#include "cache.h"

Go to the source code of this file.

Functions

int v9fs_file_open (struct inode *inode, struct file *file)
 
ssize_t v9fs_fid_readn (struct p9_fid *fid, char *data, char __user *udata, u32 count, u64 offset)
 
ssize_t v9fs_file_readn (struct file *filp, char *data, char __user *udata, u32 count, u64 offset)
 
ssize_t v9fs_file_write_internal (struct inode *inode, struct p9_fid *fid, const char __user *data, size_t count, loff_t *offset, int invalidate)
 
int v9fs_file_fsync_dotl (struct file *filp, loff_t start, loff_t end, int datasync)
 

Variables

struct file_operations v9fs_cached_file_operations
 
struct file_operations v9fs_cached_file_operations_dotl
 
struct file_operations v9fs_file_operations
 
struct file_operations v9fs_file_operations_dotl
 

Function Documentation

ssize_t v9fs_fid_readn ( struct p9_fid fid,
char data,
char __user udata,
u32  count,
u64  offset 
)

v9fs_fid_readn - read from a fid : fid to read : data buffer to read data into : user data buffer to read data into : size of buffer : offset at which to read data

Definition at line 383 of file vfs_file.c.

int v9fs_file_fsync_dotl ( struct file filp,
loff_t  start,
loff_t  end,
int  datasync 
)

Definition at line 567 of file vfs_file.c.

int v9fs_file_open ( struct inode inode,
struct file file 
)

Definition at line 56 of file vfs_file.c.

ssize_t v9fs_file_readn ( struct file filp,
char data,
char __user udata,
u32  count,
u64  offset 
)

v9fs_file_readn - read from a file : file pointer to read : data buffer to read data into : user data buffer to read data into : size of buffer : offset at which to read data

Definition at line 424 of file vfs_file.c.

ssize_t v9fs_file_write_internal ( struct inode inode,
struct p9_fid fid,
const char __user data,
size_t  count,
loff_t *  offset,
int  invalidate 
)

Definition at line 463 of file vfs_file.c.

Variable Documentation

struct file_operations v9fs_cached_file_operations
Initial value:
= {
.read = v9fs_cached_file_read,
.write = v9fs_cached_file_write,
.aio_read = generic_file_aio_read,
.aio_write = generic_file_aio_write,
.open = v9fs_file_open,
.release = v9fs_dir_release,
.lock = v9fs_file_lock,
.mmap = v9fs_file_mmap,
.fsync = v9fs_file_fsync,
}

Definition at line 745 of file vfs_file.c.

struct file_operations v9fs_cached_file_operations_dotl
Initial value:
= {
.read = v9fs_cached_file_read,
.write = v9fs_cached_file_write,
.aio_read = generic_file_aio_read,
.aio_write = generic_file_aio_write,
.open = v9fs_file_open,
.release = v9fs_dir_release,
.lock = v9fs_file_lock_dotl,
.flock = v9fs_file_flock_dotl,
.mmap = v9fs_file_mmap,
}

Definition at line 758 of file vfs_file.c.

struct file_operations v9fs_file_operations
Initial value:
= {
.read = v9fs_file_read,
.write = v9fs_file_write,
.open = v9fs_file_open,
.release = v9fs_dir_release,
.lock = v9fs_file_lock,
.fsync = v9fs_file_fsync,
}

Definition at line 772 of file vfs_file.c.

struct file_operations v9fs_file_operations_dotl
Initial value:
= {
.read = v9fs_file_read,
.write = v9fs_file_write,
.open = v9fs_file_open,
.release = v9fs_dir_release,
.lock = v9fs_file_lock_dotl,
.flock = v9fs_file_flock_dotl,
}

Definition at line 783 of file vfs_file.c.