Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
dir.c File Reference
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/configfs.h>
#include "configfs_internal.h"

Go to the source code of this file.

Functions

 DECLARE_RWSEM (configfs_rename_sem)
 
 DEFINE_SPINLOCK (configfs_dirent_lock)
 
int configfs_make_dirent (struct configfs_dirent *parent_sd, struct dentry *dentry, void *element, umode_t mode, int type)
 
int configfs_dirent_is_ready (struct configfs_dirent *sd)
 
int configfs_create_link (struct configfs_symlink *sl, struct dentry *parent, struct dentry *dentry)
 
int configfs_depend_item (struct configfs_subsystem *subsys, struct config_item *target)
 
 EXPORT_SYMBOL (configfs_depend_item)
 
void configfs_undepend_item (struct configfs_subsystem *subsys, struct config_item *target)
 
 EXPORT_SYMBOL (configfs_undepend_item)
 
int configfs_register_subsystem (struct configfs_subsystem *subsys)
 
void configfs_unregister_subsystem (struct configfs_subsystem *subsys)
 
 EXPORT_SYMBOL (configfs_register_subsystem)
 
 EXPORT_SYMBOL (configfs_unregister_subsystem)
 

Variables

struct dentry_operations configfs_dentry_ops
 
struct inode_operations configfs_dir_inode_operations
 
struct inode_operations configfs_root_inode_operations
 
struct file_operations configfs_dir_operations
 

Function Documentation

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

Definition at line 353 of file dir.c.

int configfs_depend_item ( struct configfs_subsystem subsys,
struct config_item target 
)

Definition at line 1066 of file dir.c.

int configfs_dirent_is_ready ( struct configfs_dirent sd)

Definition at line 342 of file dir.c.

int configfs_make_dirent ( struct configfs_dirent parent_sd,
struct dentry dentry,
void element,
umode_t  mode,
int  type 
)

Definition at line 226 of file dir.c.

int configfs_register_subsystem ( struct configfs_subsystem subsys)

Definition at line 1666 of file dir.c.

void configfs_undepend_item ( struct configfs_subsystem subsys,
struct config_item target 
)

Definition at line 1140 of file dir.c.

void configfs_unregister_subsystem ( struct configfs_subsystem subsys)

Definition at line 1719 of file dir.c.

DECLARE_RWSEM ( configfs_rename_sem  )
DEFINE_SPINLOCK ( configfs_dirent_lock  )
EXPORT_SYMBOL ( configfs_depend_item  )
EXPORT_SYMBOL ( configfs_undepend_item  )
EXPORT_SYMBOL ( configfs_register_subsystem  )
EXPORT_SYMBOL ( configfs_unregister_subsystem  )

Variable Documentation

struct dentry_operations configfs_dentry_ops
Initial value:
= {
.d_iput = configfs_d_iput,
.d_delete = configfs_d_delete,
}

Definition at line 78 of file dir.c.

struct inode_operations configfs_dir_inode_operations
Initial value:
= {
.mkdir = configfs_mkdir,
.rmdir = configfs_rmdir,
.symlink = configfs_symlink,
.unlink = configfs_unlink,
.lookup = configfs_lookup,
.setattr = configfs_setattr,
}

Definition at line 1436 of file dir.c.

struct file_operations configfs_dir_operations
Initial value:
= {
.open = configfs_dir_open,
.release = configfs_dir_close,
.llseek = configfs_dir_lseek,
.readdir = configfs_readdir,
}

Definition at line 1658 of file dir.c.

struct inode_operations configfs_root_inode_operations
Initial value:
= {
.lookup = configfs_lookup,
.setattr = configfs_setattr,
}

Definition at line 1445 of file dir.c.