Main Page | Modules | Data Structures | File List | Data Fields | Globals

src/kernel/linux-2.6/file.c File Reference

Linux VFS file operations. More...

#include "pvfs2-kernel.h"
#include "pvfs2-bufmap.h"
#include "pvfs2-types.h"
#include "pvfs2-internal.h"
#include <linux/fs.h>
#include <linux/pagemap.h>

Functions

int pvfs2_file_open (struct inode *inode, struct file *file)
ssize_t pvfs2_inode_read (struct inode *inode, char __user *buf, size_t count, loff_t *offset, int copy_to_user, loff_t readahead_size)
ssize_t pvfs2_file_read (struct file *file, char __user *buf, size_t count, loff_t *offset)
ssize_t pvfs2_file_write (struct file *file, const char __user *buf, size_t count, loff_t *offset)
ssize_t pvfs2_file_readv (struct file *file, const struct iovec *iov, unsigned long nr_segs, loff_t *offset)
ssize_t pvfs2_file_writev (struct file *file, const struct iovec *iov, unsigned long nr_segs, loff_t *offset)
int pvfs2_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
int pvfs2_file_mmap (struct file *file, struct vm_area_struct *vma)
int pvfs2_file_release (struct inode *inode, struct file *file)
int pvfs2_fsync (struct file *file, struct dentry *dentry, int datasync)
loff_t pvfs2_file_llseek (struct file *file, loff_t offset, int origin)

Variables

file_operations pvfs2_file_operations


Detailed Description

Linux VFS file operations.


Function Documentation

loff_t pvfs2_file_llseek struct file *  file,
loff_t  offset,
int  origin
 

Change the file pointer position for an instance of an open file.

Note:
If .llseek is overriden, we must acquire lock as described in Documentation/filesystems/Locking.

Here is the call graph for this function:

int pvfs2_file_mmap struct file *  file,
struct vm_area_struct *  vma
[static]
 

Memory map a region of a file.

ssize_t pvfs2_file_read struct file *  file,
char __user *  buf,
size_t  count,
loff_t *  offset
 

Read data from a specified offset in a file into a user buffer.

ssize_t pvfs2_file_readv struct file *  file,
const struct iovec *  iov,
unsigned long  nr_segs,
loff_t *  offset
[static]
 

Reads data to several contiguous user buffers (an iovec) from a file at a specified offset.

ssize_t pvfs2_file_write struct file *  file,
const char __user *  buf,
size_t  count,
loff_t *  offset
[static]
 

Write data from a contiguous user buffer into a file at a specified offset.

ssize_t pvfs2_file_writev struct file *  file,
const struct iovec *  iov,
unsigned long  nr_segs,
loff_t *  offset
[static]
 

Write data from a several contiguous user buffers (an iovec) into a file at a specified offset.

int pvfs2_fsync struct file *  file,
struct dentry *  dentry,
int  datasync
 

Push all data for a specific file onto permanent storage.

Here is the call graph for this function:

ssize_t pvfs2_inode_read struct inode *  inode,
char __user *  buf,
size_t  count,
loff_t *  offset,
int  copy_to_user,
loff_t  readahead_size
 

Read data from a specified offset in a file (referenced by inode).

Data may be placed either in a user or kernel buffer.

Here is the call graph for this function:

int pvfs2_ioctl struct inode *  inode,
struct file *  file,
unsigned int  cmd,
unsigned long  arg
 

Perform a miscellaneous operation on a file.

Here is the call graph for this function:


Generated on Mon Sep 6 02:47:12 2010 for PVFS by doxygen 1.3.5