Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
configfs_internal.h File Reference
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/spinlock.h>

Go to the source code of this file.

Data Structures

struct  configfs_dirent
 
struct  configfs_symlink
 

Macros

#define CONFIGFS_ROOT   0x0001
 
#define CONFIGFS_DIR   0x0002
 
#define CONFIGFS_ITEM_ATTR   0x0004
 
#define CONFIGFS_ITEM_LINK   0x0020
 
#define CONFIGFS_USET_DIR   0x0040
 
#define CONFIGFS_USET_DEFAULT   0x0080
 
#define CONFIGFS_USET_DROPPING   0x0100
 
#define CONFIGFS_USET_IN_MKDIR   0x0200
 
#define CONFIGFS_USET_CREATING   0x0400
 
#define CONFIGFS_NOT_PINNED   (CONFIGFS_ITEM_ATTR)
 

Functions

int configfs_is_root (struct config_item *item)
 
struct inodeconfigfs_new_inode (umode_t mode, struct configfs_dirent *, struct super_block *)
 
int configfs_create (struct dentry *, umode_t mode, int(*init)(struct inode *))
 
int configfs_inode_init (void)
 
void configfs_inode_exit (void)
 
int configfs_create_file (struct config_item *, const struct configfs_attribute *)
 
int configfs_make_dirent (struct configfs_dirent *, struct dentry *, void *, umode_t, int)
 
int configfs_dirent_is_ready (struct configfs_dirent *)
 
int configfs_add_file (struct dentry *, const struct configfs_attribute *, int)
 
void configfs_hash_and_remove (struct dentry *dir, const char *name)
 
const unsigned charconfigfs_get_name (struct configfs_dirent *sd)
 
void configfs_drop_dentry (struct configfs_dirent *sd, struct dentry *parent)
 
int configfs_setattr (struct dentry *dentry, struct iattr *iattr)
 
struct dentryconfigfs_pin_fs (void)
 
void configfs_release_fs (void)
 
int configfs_symlink (struct inode *dir, struct dentry *dentry, const char *symname)
 
int configfs_unlink (struct inode *dir, struct dentry *dentry)
 
int configfs_create_link (struct configfs_symlink *sl, struct dentry *parent, struct dentry *dentry)
 

Variables

struct mutex configfs_symlink_mutex
 
spinlock_t configfs_dirent_lock
 
struct kmem_cacheconfigfs_dir_cachep
 
struct rw_semaphore configfs_rename_sem
 
struct file_operations configfs_dir_operations
 
struct file_operations configfs_file_operations
 
struct file_operations bin_fops
 
struct inode_operations configfs_dir_inode_operations
 
struct inode_operations configfs_root_inode_operations
 
struct inode_operations configfs_symlink_inode_operations
 
struct dentry_operations configfs_dentry_ops
 

Macro Definition Documentation

#define CONFIGFS_DIR   0x0002

Definition at line 48 of file configfs_internal.h.

#define CONFIGFS_ITEM_ATTR   0x0004

Definition at line 49 of file configfs_internal.h.

#define CONFIGFS_ITEM_LINK   0x0020

Definition at line 50 of file configfs_internal.h.

#define CONFIGFS_NOT_PINNED   (CONFIGFS_ITEM_ATTR)

Definition at line 56 of file configfs_internal.h.

#define CONFIGFS_ROOT   0x0001

Definition at line 47 of file configfs_internal.h.

#define CONFIGFS_USET_CREATING   0x0400

Definition at line 55 of file configfs_internal.h.

#define CONFIGFS_USET_DEFAULT   0x0080

Definition at line 52 of file configfs_internal.h.

#define CONFIGFS_USET_DIR   0x0040

Definition at line 51 of file configfs_internal.h.

#define CONFIGFS_USET_DROPPING   0x0100

Definition at line 53 of file configfs_internal.h.

#define CONFIGFS_USET_IN_MKDIR   0x0200

Definition at line 54 of file configfs_internal.h.

Function Documentation

int configfs_add_file ( struct dentry ,
const struct configfs_attribute ,
int   
)

Definition at line 317 of file file.c.

int configfs_create ( struct dentry ,
umode_t  mode,
int(*)(struct inode *)  init 
)

Definition at line 187 of file inode.c.

int configfs_create_file ( struct config_item item,
const struct configfs_attribute attr 
)

configfs_create_file - create an attribute file for an item. : item we're creating for. : atrribute descriptor.

Definition at line 337 of file file.c.

int configfs_create_link ( struct configfs_symlink sl,
struct dentry parent,
struct dentry dentry 
)

Definition at line 353 of file dir.c.

int configfs_dirent_is_ready ( struct configfs_dirent )

Definition at line 342 of file dir.c.

void configfs_drop_dentry ( struct configfs_dirent sd,
struct dentry parent 
)

Definition at line 247 of file inode.c.

const unsigned char* configfs_get_name ( struct configfs_dirent sd)

Definition at line 225 of file inode.c.

void configfs_hash_and_remove ( struct dentry dir,
const char name 
)

Definition at line 263 of file inode.c.

void configfs_inode_exit ( void  )

Definition at line 293 of file inode.c.

int configfs_inode_init ( void  )

Definition at line 288 of file inode.c.

int configfs_is_root ( struct config_item item)

Definition at line 56 of file mount.c.

int configfs_make_dirent ( struct configfs_dirent ,
struct dentry ,
void ,
umode_t  ,
int   
)

Definition at line 226 of file dir.c.

struct inode* configfs_new_inode ( umode_t  mode,
struct configfs_dirent ,
struct super_block  
)
read

Definition at line 133 of file inode.c.

struct dentry* configfs_pin_fs ( void  )
read

Definition at line 118 of file mount.c.

void configfs_release_fs ( void  )

Definition at line 125 of file mount.c.

int configfs_setattr ( struct dentry dentry,
struct iattr iattr 
)

Definition at line 63 of file inode.c.

int configfs_symlink ( struct inode dir,
struct dentry dentry,
const char symname 
)

Definition at line 135 of file symlink.c.

int configfs_unlink ( struct inode dir,
struct dentry dentry 
)

Definition at line 185 of file symlink.c.

Variable Documentation

Definition at line 451 of file bin.c.

struct dentry_operations configfs_dentry_ops

Definition at line 78 of file dir.c.

struct kmem_cache* configfs_dir_cachep

Definition at line 41 of file mount.c.

struct inode_operations configfs_dir_inode_operations

Definition at line 1436 of file dir.c.

struct file_operations configfs_dir_operations

Definition at line 1658 of file dir.c.

spinlock_t configfs_dirent_lock
struct file_operations configfs_file_operations

Definition at line 308 of file file.c.

struct rw_semaphore configfs_rename_sem
struct inode_operations configfs_root_inode_operations

Definition at line 1445 of file dir.c.

struct inode_operations configfs_symlink_inode_operations

Definition at line 308 of file symlink.c.

struct mutex configfs_symlink_mutex