Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
file.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/compat.h>
#include <linux/mount.h>
#include <linux/time.h>
#include <linux/buffer_head.h>
#include <linux/writeback.h>
#include <linux/backing-dev.h>
#include <linux/blkdev.h>
#include <linux/fsnotify.h>
#include <linux/security.h>
#include "fat.h"

Go to the source code of this file.

Macros

#define TIMES_SET_FLAGS   (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)
 
#define FAT_VALID_MODE   (S_IFREG | S_IFDIR | S_IRWXUGO)
 

Functions

long fat_generic_ioctl (struct file *filp, unsigned int cmd, unsigned long arg)
 
int fat_file_fsync (struct file *filp, loff_t start, loff_t end, int datasync)
 
void fat_truncate_blocks (struct inode *inode, loff_t offset)
 
int fat_getattr (struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
 
 EXPORT_SYMBOL_GPL (fat_getattr)
 
int fat_setattr (struct dentry *dentry, struct iattr *attr)
 
 EXPORT_SYMBOL_GPL (fat_setattr)
 

Variables

struct file_operations fat_file_operations
 
struct inode_operations fat_file_inode_operations
 

Macro Definition Documentation

#define FAT_VALID_MODE   (S_IFREG | S_IFDIR | S_IRWXUGO)

Definition at line 368 of file file.c.

#define TIMES_SET_FLAGS   (ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET)

Definition at line 366 of file file.c.

Function Documentation

EXPORT_SYMBOL_GPL ( fat_getattr  )
EXPORT_SYMBOL_GPL ( fat_setattr  )
int fat_file_fsync ( struct file filp,
loff_t  start,
loff_t  end,
int  datasync 
)

Definition at line 151 of file file.c.

long fat_generic_ioctl ( struct file filp,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 117 of file file.c.

int fat_getattr ( struct vfsmount mnt,
struct dentry dentry,
struct kstat stat 
)

Definition at line 304 of file file.c.

int fat_setattr ( struct dentry dentry,
struct iattr attr 
)

Definition at line 370 of file file.c.

void fat_truncate_blocks ( struct inode inode,
loff_t  offset 
)

Definition at line 285 of file file.c.

Variable Documentation

struct inode_operations fat_file_inode_operations
Initial value:
= {
.setattr = fat_setattr,
.getattr = fat_getattr,
}

Definition at line 446 of file file.c.

struct file_operations fat_file_operations
Initial value:
= {
.read = do_sync_read,
.write = do_sync_write,
.aio_read = generic_file_aio_read,
.aio_write = generic_file_aio_write,
.release = fat_file_release,
.unlocked_ioctl = fat_generic_ioctl,
.fsync = fat_file_fsync,
.splice_read = generic_file_splice_read,
}

Definition at line 163 of file file.c.