Skip to content

Commit

Permalink
libfs: Doxygen Enhancement Task #2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexivanov authored and gedare committed Dec 18, 2012
1 parent d527562 commit 11109ea
Show file tree
Hide file tree
Showing 23 changed files with 257 additions and 152 deletions.
12 changes: 7 additions & 5 deletions cpukit/libfs/src/imfs/deviceio.c
@@ -1,9 +1,11 @@
/*
* IMFS Device Node Handlers
*
* This file contains the set of handlers used to map operations on
* IMFS device nodes onto calls to the RTEMS Classic API IO Manager.
/**
* @file
*
* @brief IMFS Device Node Handlers
* @ingroup IMFS
*/

/*
* COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
Expand Down
79 changes: 78 additions & 1 deletion cpukit/libfs/src/imfs/imfs.h
@@ -1,7 +1,7 @@
/**
* @file rtems/imfs.h
*
* Header file for the In-Memory File System
* @brief Header file for the In-Memory File System
*/

/*
Expand All @@ -21,6 +21,12 @@
#include <rtems/libio_.h>
#include <rtems/pipe.h>

/**
* @defgroup IMFS POSIX In-Memory File System Support
*
* @brief In-Memory File System Support
*/

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -158,6 +164,9 @@ typedef IMFS_jnode_t *(*IMFS_node_control_initialize)(
const IMFS_types_union *info
);

/**
* @brief Initialize Default IMFS Node
*/
IMFS_jnode_t *IMFS_node_initialize_default(
IMFS_jnode_t *node,
const IMFS_types_union *info
Expand All @@ -172,12 +181,18 @@ typedef IMFS_jnode_t *(*IMFS_node_control_remove)(
IMFS_jnode_t *node
);

/**
* @brief Remove Default IMFS Node
*/
IMFS_jnode_t *IMFS_node_remove_default(
IMFS_jnode_t *node
);

typedef IMFS_jnode_t *(*IMFS_node_control_destroy)( IMFS_jnode_t *node );

/**
* @brief Destroy Default IMFS Node
*/
IMFS_jnode_t *IMFS_node_destroy_default( IMFS_jnode_t *node );

typedef struct {
Expand Down Expand Up @@ -298,6 +313,9 @@ extern int miniIMFS_initialize(
const void *data
);

/**
* @brief IMFS Initialization Support
*/
extern int IMFS_initialize_support(
rtems_filesystem_mount_table_entry_t *mt_entry,
const rtems_filesystem_operations_table *op_table,
Expand All @@ -322,21 +340,44 @@ extern void IMFS_dump( void );
*/
extern int IMFS_memfile_maximum_size( void );

/**
* @brief Destroy IMFS Node
*/
extern void IMFS_node_destroy( IMFS_jnode_t *node );

/**
* @brief Clone IMFS Node
*/
extern int IMFS_node_clone( rtems_filesystem_location_info_t *loc );

/**
* @brief Free IMFS Node
*/
extern void IMFS_node_free( const rtems_filesystem_location_info_t *loc );

/**
* @brief IMFS Node Type
*
* The following verifies that returns the type of node that the
* loc refers to.
*/
extern rtems_filesystem_node_types_t IMFS_node_type(
const rtems_filesystem_location_info_t *loc
);

/**
* @brief IMFS Stat
*
* This routine provides a stat for the IMFS file system.
*/
extern int IMFS_stat(
const rtems_filesystem_location_info_t *loc,
struct stat *buf
);

/**
* @brief Evaluation IMFS Node Support
*/
extern void IMFS_eval_path(
rtems_filesystem_eval_path_context_t *ctx
);
Expand All @@ -362,6 +403,11 @@ extern int IMFS_mknod(
dev_t dev
);

/**
* @brief Create a New IMFS Node
*
* Routine to create a new in memory file system node.
*/
extern IMFS_jnode_t *IMFS_allocate_node(
IMFS_fs_info_t *fs_info,
const IMFS_node_control *node_control,
Expand All @@ -371,6 +417,12 @@ extern IMFS_jnode_t *IMFS_allocate_node(
const IMFS_types_union *info
);

/**
* @brief Create an IMFS Node
*
* Create an IMFS filesystem node of an arbitrary type that is NOT
* the root directory node.
*/
extern IMFS_jnode_t *IMFS_create_node_with_control(
const rtems_filesystem_location_info_t *parentloc,
const IMFS_node_control *node_control,
Expand All @@ -391,6 +443,9 @@ extern int IMFS_make_generic_node(
void *context
);

/**
* @brief Mount an IMFS
*/
extern int IMFS_mount(
rtems_filesystem_mount_table_entry_t *mt_entry /* IN */
);
Expand Down Expand Up @@ -433,6 +488,16 @@ extern ssize_t memfile_write(
size_t count /* IN */
);

/**
* @name IMFS Device Node Handlers
*
* This section contains the set of handlers used to map operations on
* IMFS device nodes onto calls to the RTEMS Classic API IO Manager.
*
* @{
*/


extern int device_open(
rtems_libio_t *iop, /* IN */
const char *pathname, /* IN */
Expand Down Expand Up @@ -467,12 +532,24 @@ extern int device_ftruncate(
off_t length /* IN */
);

/** @} */

/**
* @brief Set IMFS File Access and Modification Times
*
*
* This routine is the implementation of the utime() system
* call for the IMFS.
*/
extern int IMFS_utime(
const rtems_filesystem_location_info_t *loc,
time_t actime,
time_t modtime
);

/**
* @brief Change IMFS File Mode
*/
extern int IMFS_fchmod(
const rtems_filesystem_location_info_t *loc,
mode_t mode
Expand Down
14 changes: 6 additions & 8 deletions cpukit/libfs/src/imfs/imfs_creat.c
@@ -1,8 +1,10 @@
/*
* IMFS_create_node()
*
* Routine to create a new in memory file system node.
/**
* @file
*
* @brief Create an IMFS Node
* @ingroup IMFS
*/
/*
* COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
Expand Down Expand Up @@ -83,10 +85,6 @@ IMFS_jnode_t *IMFS_allocate_node(
return (*node->control->node_initialize)( node, info );
}

/*
* Create an IMFS filesystem node of an arbitrary type that is NOT
* the root directory node.
*/
IMFS_jnode_t *IMFS_create_node_with_control(
const rtems_filesystem_location_info_t *parentloc,
const IMFS_node_control *node_control,
Expand Down
9 changes: 7 additions & 2 deletions cpukit/libfs/src/imfs/imfs_eval.c
@@ -1,6 +1,11 @@
/*
* Evaluation IMFS Node Support Routines
/**
* @file
*
* @brief Evaluation IMFS Node Support
* @ingroup IMFS
*/

/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
Expand Down
9 changes: 7 additions & 2 deletions cpukit/libfs/src/imfs/imfs_fchmod.c
@@ -1,6 +1,11 @@
/*
* IMFS file change mode routine.
/**
* @file
*
* @brief Change IMFS File Mode
* @ingroup IMFS
*/

/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
Expand Down
9 changes: 7 additions & 2 deletions cpukit/libfs/src/imfs/imfs_initsupp.c
@@ -1,6 +1,11 @@
/*
* IMFS Initialization
/**
* @file
*
* @brief IMFS Node Support
* @ingroup IMFS
*/

/*
* COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
Expand Down
9 changes: 7 additions & 2 deletions cpukit/libfs/src/imfs/imfs_mount.c
@@ -1,6 +1,11 @@
/*
* IMFS_mount
/**
* @file
*
* @brief Mount an IMFS
* @ingroup IMFS
*/

/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
Expand Down
12 changes: 7 additions & 5 deletions cpukit/libfs/src/imfs/imfs_ntype.c
@@ -1,9 +1,11 @@
/*
* IMFS_node_type
*
* The following verifies that returns the type of node that the
* loc refers to.
/**
* @file
*
* @brief IMFS Node Type
* @ingroup IMFS
*/

/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
Expand Down
11 changes: 7 additions & 4 deletions cpukit/libfs/src/imfs/imfs_stat.c
@@ -1,8 +1,11 @@
/*
* IMFS_stat
*
* This routine provides a stat for the IMFS file system.
/**
* @file
*
* @brief IMFS Stat
* @ingroup IMFS
*/

/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
Expand Down
12 changes: 7 additions & 5 deletions cpukit/libfs/src/imfs/imfs_utime.c
@@ -1,9 +1,11 @@
/*
* IMFS_utime
*
* This routine is the implementation of the utime() system
* call for the IMFS.
/**
* @file
*
* @brief Set IMFS File Access and Modification Times
* @ingroup IMFS
*/

/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
Expand Down
16 changes: 7 additions & 9 deletions cpukit/libfs/src/imfs/ioman.c
@@ -1,7 +1,11 @@
/*
* This file emulates the old Classic RTEMS IO manager directives
* which register and lookup names using the in-memory filesystem.
/**
* @file
*
* @brief RTMES Register IO Name
* @ingroup ClassicIO
*/

/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
Expand All @@ -22,12 +26,6 @@

#include <rtems/libio_.h>

/*
* rtems_io_register_name
*
* This assumes that all registered devices are character devices.
*/

rtems_status_code rtems_io_register_name(
const char *device_name,
rtems_device_major_number major,
Expand Down

0 comments on commit 11109ea

Please sign in to comment.