Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
fs_struct.c File Reference
#include <linux/export.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/path.h>
#include <linux/slab.h>
#include <linux/fs_struct.h>
#include "internal.h"

Go to the source code of this file.

Functions

void set_fs_root (struct fs_struct *fs, struct path *path)
 
void set_fs_pwd (struct fs_struct *fs, struct path *path)
 
void chroot_fs_refs (struct path *old_root, struct path *new_root)
 
void free_fs_struct (struct fs_struct *fs)
 
void exit_fs (struct task_struct *tsk)
 
struct fs_structcopy_fs_struct (struct fs_struct *old)
 
int unshare_fs_struct (void)
 
 EXPORT_SYMBOL_GPL (unshare_fs_struct)
 
int current_umask (void)
 
 EXPORT_SYMBOL (current_umask)
 
void daemonize_fs_struct (void)
 

Variables

struct fs_struct init_fs
 

Function Documentation

void chroot_fs_refs ( struct path old_root,
struct path new_root 
)

Definition at line 56 of file fs_struct.c.

struct fs_struct* copy_fs_struct ( struct fs_struct old)
read

Definition at line 110 of file fs_struct.c.

int current_umask ( void  )

Definition at line 154 of file fs_struct.c.

void daemonize_fs_struct ( void  )

Definition at line 168 of file fs_struct.c.

void exit_fs ( struct task_struct tsk)

Definition at line 93 of file fs_struct.c.

EXPORT_SYMBOL ( current_umask  )
EXPORT_SYMBOL_GPL ( unshare_fs_struct  )
void free_fs_struct ( struct fs_struct fs)

Definition at line 86 of file fs_struct.c.

void set_fs_pwd ( struct fs_struct fs,
struct path path 
)

Definition at line 32 of file fs_struct.c.

void set_fs_root ( struct fs_struct fs,
struct path path 
)

Definition at line 13 of file fs_struct.c.

int unshare_fs_struct ( void  )

Definition at line 131 of file fs_struct.c.

Variable Documentation

struct fs_struct init_fs
Initial value:
= {
.users = 1,
.seq = SEQCNT_ZERO,
.umask = 0022,
}

Definition at line 161 of file fs_struct.c.