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

Go to the source code of this file.

Data Structures

struct  childless
 
struct  simple_child
 
struct  simple_children
 

Macros

#define CHILDLESS_ATTR(_name, _mode, _show, _store)   struct childless_attribute childless_attr_##_name = __CONFIGFS_ATTR(_name, _mode, _show, _store)
 
#define CHILDLESS_ATTR_RO(_name, _show)   struct childless_attribute childless_attr_##_name = __CONFIGFS_ATTR_RO(_name, _show);
 

Functions

 CONFIGFS_ATTR_STRUCT (childless)
 
 CHILDLESS_ATTR_RO (showme, childless_showme_read)
 
 CHILDLESS_ATTR (storeme, S_IRUGO|S_IWUSR, childless_storeme_read, childless_storeme_write)
 
 CHILDLESS_ATTR_RO (description, childless_description_read)
 
 CONFIGFS_ATTR_OPS (childless)
 
 module_init (configfs_example_init)
 
 module_exit (configfs_example_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CHILDLESS_ATTR (   _name,
  _mode,
  _show,
  _store 
)    struct childless_attribute childless_attr_##_name = __CONFIGFS_ATTR(_name, _mode, _show, _store)

Definition at line 61 of file configfs_example_macros.c.

#define CHILDLESS_ATTR_RO (   _name,
  _show 
)    struct childless_attribute childless_attr_##_name = __CONFIGFS_ATTR_RO(_name, _show);

Definition at line 63 of file configfs_example_macros.c.

Function Documentation

CHILDLESS_ATTR ( storeme  ,
S_IRUGO S_IWUSR,
childless_storeme_read  ,
childless_storeme_write   
)
CHILDLESS_ATTR_RO ( showme  ,
childless_showme_read   
)
CHILDLESS_ATTR_RO ( description  ,
childless_description_read   
)
CONFIGFS_ATTR_OPS ( childless  )
CONFIGFS_ATTR_STRUCT ( childless  )
module_exit ( configfs_example_exit  )
module_init ( configfs_example_init  )
MODULE_LICENSE ( "GPL"  )