Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
stat.c File Reference
#include <linux/export.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/file.h>
#include <linux/highuid.h>
#include <linux/fs.h>
#include <linux/namei.h>
#include <linux/security.h>
#include <linux/syscalls.h>
#include <linux/pagemap.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>

Go to the source code of this file.

Macros

#define choose_32_64(a, b)   b
 
#define valid_dev(x)   choose_32_64(old_valid_dev,new_valid_dev)(x)
 
#define encode_dev(x)   choose_32_64(old_encode_dev,new_encode_dev)(x)
 
#define INIT_STRUCT_STAT_PADDING(st)   memset(&st, 0, sizeof(st))
 

Functions

void generic_fillattr (struct inode *inode, struct kstat *stat)
 
 EXPORT_SYMBOL (generic_fillattr)
 
int vfs_getattr (struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
 
 EXPORT_SYMBOL (vfs_getattr)
 
int vfs_fstat (unsigned int fd, struct kstat *stat)
 
 EXPORT_SYMBOL (vfs_fstat)
 
int vfs_fstatat (int dfd, const char __user *filename, struct kstat *stat, int flag)
 
 EXPORT_SYMBOL (vfs_fstatat)
 
int vfs_stat (const char __user *name, struct kstat *stat)
 
 EXPORT_SYMBOL (vfs_stat)
 
int vfs_lstat (const char __user *name, struct kstat *stat)
 
 EXPORT_SYMBOL (vfs_lstat)
 
 SYSCALL_DEFINE2 (newstat, const char __user *, filename, struct stat __user *, statbuf)
 
 SYSCALL_DEFINE2 (newlstat, const char __user *, filename, struct stat __user *, statbuf)
 
 SYSCALL_DEFINE4 (newfstatat, int, dfd, const char __user *, filename, struct stat __user *, statbuf, int, flag)
 
 SYSCALL_DEFINE2 (newfstat, unsigned int, fd, struct stat __user *, statbuf)
 
 SYSCALL_DEFINE4 (readlinkat, int, dfd, const char __user *, pathname, char __user *, buf, int, bufsiz)
 
 SYSCALL_DEFINE3 (readlink, const char __user *, path, char __user *, buf, int, bufsiz)
 
void __inode_add_bytes (struct inode *inode, loff_t bytes)
 
void inode_add_bytes (struct inode *inode, loff_t bytes)
 
 EXPORT_SYMBOL (inode_add_bytes)
 
void inode_sub_bytes (struct inode *inode, loff_t bytes)
 
 EXPORT_SYMBOL (inode_sub_bytes)
 
loff_t inode_get_bytes (struct inode *inode)
 
 EXPORT_SYMBOL (inode_get_bytes)
 
void inode_set_bytes (struct inode *inode, loff_t bytes)
 
 EXPORT_SYMBOL (inode_set_bytes)
 

Macro Definition Documentation

#define choose_32_64 (   a,
  b 
)    b

Definition at line 197 of file stat.c.

#define encode_dev (   x)    choose_32_64(old_encode_dev,new_encode_dev)(x)

Definition at line 201 of file stat.c.

#define INIT_STRUCT_STAT_PADDING (   st)    memset(&st, 0, sizeof(st))

Definition at line 204 of file stat.c.

#define valid_dev (   x)    choose_32_64(old_valid_dev,new_valid_dev)(x)

Definition at line 200 of file stat.c.

Function Documentation

void __inode_add_bytes ( struct inode inode,
loff_t  bytes 
)

Definition at line 421 of file stat.c.

EXPORT_SYMBOL ( generic_fillattr  )
EXPORT_SYMBOL ( vfs_getattr  )
EXPORT_SYMBOL ( vfs_fstat  )
EXPORT_SYMBOL ( vfs_fstatat  )
EXPORT_SYMBOL ( vfs_stat  )
EXPORT_SYMBOL ( vfs_lstat  )
EXPORT_SYMBOL ( inode_add_bytes  )
EXPORT_SYMBOL ( inode_sub_bytes  )
EXPORT_SYMBOL ( inode_get_bytes  )
EXPORT_SYMBOL ( inode_set_bytes  )
void generic_fillattr ( struct inode inode,
struct kstat stat 
)

Definition at line 21 of file stat.c.

void inode_add_bytes ( struct inode inode,
loff_t  bytes 
)

Definition at line 432 of file stat.c.

loff_t inode_get_bytes ( struct inode inode)

Definition at line 456 of file stat.c.

void inode_set_bytes ( struct inode inode,
loff_t  bytes 
)

Definition at line 468 of file stat.c.

void inode_sub_bytes ( struct inode inode,
loff_t  bytes 
)

Definition at line 441 of file stat.c.

SYSCALL_DEFINE2 ( newstat  ,
const char __user ,
filename  ,
struct stat __user ,
statbuf   
)

Definition at line 244 of file stat.c.

SYSCALL_DEFINE2 ( newlstat  ,
const char __user ,
filename  ,
struct stat __user ,
statbuf   
)

Definition at line 255 of file stat.c.

SYSCALL_DEFINE2 ( newfstat  ,
unsigned  int,
fd  ,
struct stat __user ,
statbuf   
)

Definition at line 282 of file stat.c.

SYSCALL_DEFINE3 ( readlink  ,
const char __user ,
path  ,
char __user ,
buf  ,
int  ,
bufsiz   
)

Definition at line 321 of file stat.c.

SYSCALL_DEFINE4 ( newfstatat  ,
int  ,
dfd  ,
const char __user ,
filename  ,
struct stat __user ,
statbuf  ,
int  ,
flag   
)

Definition at line 269 of file stat.c.

SYSCALL_DEFINE4 ( readlinkat  ,
int  ,
dfd  ,
const char __user ,
pathname  ,
char __user ,
buf  ,
int  ,
bufsiz   
)

Definition at line 293 of file stat.c.

int vfs_fstat ( unsigned int  fd,
struct kstat stat 
)

Definition at line 58 of file stat.c.

int vfs_fstatat ( int  dfd,
const char __user filename,
struct kstat stat,
int  flag 
)

Definition at line 72 of file stat.c.

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

Definition at line 40 of file stat.c.

int vfs_lstat ( const char __user name,
struct kstat stat 
)

Definition at line 105 of file stat.c.

int vfs_stat ( const char __user name,
struct kstat stat 
)

Definition at line 99 of file stat.c.