Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
namei.h File Reference
#include <linux/dcache.h>
#include <linux/linkage.h>
#include <linux/path.h>

Go to the source code of this file.

Data Structures

struct  nameidata
 

Macros

#define LOOKUP_FOLLOW   0x0001
 
#define LOOKUP_DIRECTORY   0x0002
 
#define LOOKUP_AUTOMOUNT   0x0004
 
#define LOOKUP_PARENT   0x0010
 
#define LOOKUP_REVAL   0x0020
 
#define LOOKUP_RCU   0x0040
 
#define LOOKUP_OPEN   0x0100
 
#define LOOKUP_CREATE   0x0200
 
#define LOOKUP_EXCL   0x0400
 
#define LOOKUP_RENAME_TARGET   0x0800
 
#define LOOKUP_JUMPED   0x1000
 
#define LOOKUP_ROOT   0x2000
 
#define LOOKUP_EMPTY   0x4000
 
#define user_path(name, path)   user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW, path)
 
#define user_lpath(name, path)   user_path_at(AT_FDCWD, name, 0, path)
 
#define user_path_dir(name, path)   user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, path)
 

Enumerations

enum  { MAX_NESTED_LINKS = 8 }
 
enum  {
  LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT,
  LAST_BIND
}
 

Functions

int user_path_at (int, const char __user *, unsigned, struct path *)
 
int user_path_at_empty (int, const char __user *, unsigned, struct path *, int *empty)
 
int kern_path (const char *, unsigned, struct path *)
 
struct dentrykern_path_create (int, const char *, struct path *, int)
 
struct dentryuser_path_create (int, const char __user *, struct path *, int)
 
void done_path_create (struct path *, struct dentry *)
 
struct dentrykern_path_locked (const char *, struct path *)
 
int vfs_path_lookup (struct dentry *, struct vfsmount *, const char *, unsigned int, struct path *)
 
struct dentrylookup_one_len (const char *, struct dentry *, int)
 
int follow_down_one (struct path *)
 
int follow_down (struct path *)
 
int follow_up (struct path *)
 
struct dentrylock_rename (struct dentry *, struct dentry *)
 
void unlock_rename (struct dentry *, struct dentry *)
 
void nd_jump_link (struct nameidata *nd, struct path *path)
 

Macro Definition Documentation

#define LOOKUP_AUTOMOUNT   0x0004

Definition at line 40 of file namei.h.

#define LOOKUP_CREATE   0x0200

Definition at line 50 of file namei.h.

#define LOOKUP_DIRECTORY   0x0002

Definition at line 39 of file namei.h.

#define LOOKUP_EMPTY   0x4000

Definition at line 56 of file namei.h.

#define LOOKUP_EXCL   0x0400

Definition at line 51 of file namei.h.

#define LOOKUP_FOLLOW   0x0001

Definition at line 38 of file namei.h.

#define LOOKUP_JUMPED   0x1000

Definition at line 54 of file namei.h.

#define LOOKUP_OPEN   0x0100

Definition at line 49 of file namei.h.

#define LOOKUP_PARENT   0x0010

Definition at line 42 of file namei.h.

#define LOOKUP_RCU   0x0040

Definition at line 44 of file namei.h.

#define LOOKUP_RENAME_TARGET   0x0800

Definition at line 52 of file namei.h.

#define LOOKUP_REVAL   0x0020

Definition at line 43 of file namei.h.

#define LOOKUP_ROOT   0x2000

Definition at line 55 of file namei.h.

#define user_lpath (   name,
  path 
)    user_path_at(AT_FDCWD, name, 0, path)

Definition at line 62 of file namei.h.

#define user_path (   name,
  path 
)    user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW, path)

Definition at line 61 of file namei.h.

#define user_path_dir (   name,
  path 
)    user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, path)

Definition at line 63 of file namei.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
MAX_NESTED_LINKS 

Definition at line 10 of file namei.h.

anonymous enum
Enumerator:
LAST_NORM 
LAST_ROOT 
LAST_DOT 
LAST_DOTDOT 
LAST_BIND 

Definition at line 27 of file namei.h.

Function Documentation

void done_path_create ( struct path ,
struct dentry  
)

Definition at line 3107 of file namei.c.

int follow_down ( struct path )

Definition at line 1178 of file namei.c.

int follow_down_one ( struct path )

Definition at line 1066 of file namei.c.

int follow_up ( struct path )

Definition at line 898 of file namei.c.

int kern_path ( const char ,
unsigned  ,
struct path  
)
struct dentry* kern_path_create ( int  ,
const char ,
struct path ,
int   
)
read

Definition at line 3047 of file namei.c.

struct dentry* kern_path_locked ( const char ,
struct path  
)
read

Definition at line 2044 of file namei.c.

struct dentry* lock_rename ( struct dentry ,
struct dentry  
)
read

Definition at line 2297 of file namei.c.

struct dentry* lookup_one_len ( const char ,
struct dentry ,
int   
)
read

Definition at line 2120 of file namei.c.

void nd_jump_link ( struct nameidata nd,
struct path path 
)

Definition at line 689 of file namei.c.

void unlock_rename ( struct dentry ,
struct dentry  
)

Definition at line 2327 of file namei.c.

int user_path_at ( int  ,
const char __user ,
unsigned  ,
struct path  
)

Definition at line 2179 of file namei.c.

int user_path_at_empty ( int  ,
const char __user ,
unsigned  ,
struct path ,
int empty 
)

Definition at line 2161 of file namei.c.

struct dentry* user_path_create ( int  ,
const char __user ,
struct path ,
int   
)
read

Definition at line 3116 of file namei.c.

int vfs_path_lookup ( struct dentry ,
struct vfsmount ,
const char ,
unsigned  int,
struct path  
)

Definition at line 2083 of file namei.c.