Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
item.c File Reference
#include <linux/string.h>
#include <linux/module.h>
#include <linux/stat.h>
#include <linux/slab.h>
#include <linux/configfs.h>

Go to the source code of this file.

Functions

void config_item_init (struct config_item *item)
 
: name.

config_item_set_name - Set the name of an item : item.

If strlen(name) >= CONFIGFS_ITEM_NAME_LEN, then use a dynamically allocated string that ->ci_name points to. Otherwise, use the static ->ci_namebuf array.

int config_item_set_name (struct config_item *item, const char *fmt,...)
 
 EXPORT_SYMBOL (config_item_set_name)
 
void config_item_init_type_name (struct config_item *item, const char *name, struct config_item_type *type)
 
 EXPORT_SYMBOL (config_item_init_type_name)
 
void config_group_init_type_name (struct config_group *group, const char *name, struct config_item_type *type)
 
 EXPORT_SYMBOL (config_group_init_type_name)
 
struct config_itemconfig_item_get (struct config_item *item)
 
void config_item_put (struct config_item *item)
 
void config_group_init (struct config_group *group)
 
: item's name.

config_group_find_item - search for item in group. : group we're looking in.

Iterate over ->cg_list, looking for a matching config_item. If matching item is found take a reference and return the item. Caller must have locked group via ->cg_subsys->su_mtx.

struct config_itemconfig_group_find_item (struct config_group *group, const char *name)
 
 EXPORT_SYMBOL (config_item_init)
 
 EXPORT_SYMBOL (config_group_init)
 
 EXPORT_SYMBOL (config_item_get)
 
 EXPORT_SYMBOL (config_item_put)
 
 EXPORT_SYMBOL (config_group_find_item)
 

Function Documentation

struct config_item* config_group_find_item ( struct config_group group,
const char name 
)
read

Definition at line 195 of file item.c.

void config_group_init ( struct config_group group)

config_group_init - initialize a group for use : group

Definition at line 180 of file item.c.

void config_group_init_type_name ( struct config_group group,
const char name,
struct config_item_type type 
)

Definition at line 125 of file item.c.

struct config_item* config_item_get ( struct config_item item)
read

Definition at line 134 of file item.c.

void config_item_init ( struct config_item item)

config_item_init - initialize item. : item in question.

Definition at line 50 of file item.c.

void config_item_init_type_name ( struct config_item item,
const char name,
struct config_item_type type 
)

Definition at line 115 of file item.c.

void config_item_put ( struct config_item item)

config_item_put - decrement refcount for item. : item.

Decrement the refcount, and if 0, call config_item_cleanup().

Definition at line 170 of file item.c.

int config_item_set_name ( struct config_item item,
const char fmt,
  ... 
)

Definition at line 65 of file item.c.

EXPORT_SYMBOL ( config_item_set_name  )
EXPORT_SYMBOL ( config_item_init_type_name  )
EXPORT_SYMBOL ( config_group_init_type_name  )
EXPORT_SYMBOL ( config_item_init  )
EXPORT_SYMBOL ( config_group_init  )
EXPORT_SYMBOL ( config_item_get  )
EXPORT_SYMBOL ( config_item_put  )
EXPORT_SYMBOL ( config_group_find_item  )