[rtems commit] IMFS: Documentation

Sebastian Huber sebh at rtems.org
Wed Jan 9 19:49:00 UTC 2013


Module:    rtems
Branch:    master
Commit:    a89a2ec5967c84869590c9e6d8185d925861a998
Changeset: http://git.rtems.org/rtems/commit/?id=a89a2ec5967c84869590c9e6d8185d925861a998

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jan  9 20:52:44 2013 +0100

IMFS: Documentation

---

 cpukit/libfs/src/imfs/imfs.h |   59 +++++++++++++++++++++++++----------------
 1 files changed, 36 insertions(+), 23 deletions(-)

diff --git a/cpukit/libfs/src/imfs/imfs.h b/cpukit/libfs/src/imfs/imfs.h
index 9b2d6a6..ba05c5b 100644
--- a/cpukit/libfs/src/imfs/imfs.h
+++ b/cpukit/libfs/src/imfs/imfs.h
@@ -21,18 +21,18 @@
 #include <rtems/libio_.h>
 #include <rtems/pipe.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * @defgroup IMFS POSIX In-Memory File System Support
  *
- * @brief In-Memory File System Support
+ * @brief In-Memory File System Support.
  *
  * @{
  */
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /*
  *  Data types
  */
@@ -161,6 +161,8 @@ typedef union {
   IMFS_generic_t     generic;
 } IMFS_types_union;
 
+/** @} */
+
 /**
  * @addtogroup IMFSGenericNodes
  *
@@ -170,8 +172,8 @@ typedef union {
 /**
  * @brief Initializes an IMFS node.
  *
- * @param[in,out] node is the IMFS node.
- * @param[in] info is the IMFS type information.
+ * @param[in,out] node The IMFS node.
+ * @param[in] info The IMFS type information.
  *
  * @retval node Successful operation.
  * @retval NULL An error occurred.  The @c errno indicates the error.  This
@@ -188,8 +190,8 @@ typedef IMFS_jnode_t *(*IMFS_node_control_initialize)(
 /**
  * @brief Returns the node and does nothing else.
  *
- * @param[in,out] node is the IMFS node.
- * @param[in] info is the IMFS type information.
+ * @param[in,out] node The IMFS node.
+ * @param[in] info The IMFS type information.
  *
  * @retval node Returns always the node passed as parameter.
  *
@@ -203,8 +205,8 @@ IMFS_jnode_t *IMFS_node_initialize_default(
 /**
  * @brief Returns the node and sets the generic node context.
  *
- * @param[in,out] node is the IMFS node.
- * @param[in] info is the IMFS type information.
+ * @param[in,out] node The IMFS node.
+ * @param[in] info The IMFS type information.
  *
  * @retval node Returns always the node passed as parameter.
  *
@@ -218,7 +220,7 @@ IMFS_jnode_t *IMFS_node_initialize_generic(
 /**
  * @brief Prepares the removal of an IMFS node from its parent directory.
  *
- * @param[in,out] node is the IMFS node.
+ * @param[in,out] node The IMFS node.
  *
  * @retval node Successful operation.
  * @retval NULL An error occurred.  The @c errno indicates the error.  This
@@ -233,7 +235,7 @@ typedef IMFS_jnode_t *(*IMFS_node_control_remove)(
 /**
  * @brief Returns the node and does nothing else.
  *
- * @param[in,out] node is the IMFS node.
+ * @param[in,out] node The IMFS node.
  *
  * @retval node Returns always the node passed as parameter.
  *
@@ -246,7 +248,7 @@ IMFS_jnode_t *IMFS_node_remove_default(
 /**
  * @brief Destroys an IMFS node.
  *
- * @param[in,out] node is the IMFS node.
+ * @param[in,out] node The IMFS node.
  *
  * @retval node Returns always the node passed as parameter.
  *
@@ -257,7 +259,7 @@ typedef IMFS_jnode_t *(*IMFS_node_control_destroy)( IMFS_jnode_t *node );
 /**
  * @brief Returns the node and does nothing else.
  *
- * @param[in,out] node is the IMFS node.
+ * @param[in,out] node The IMFS node.
  *
  * @retval node Returns always the node passed as parameter.
  *
@@ -278,6 +280,12 @@ typedef struct {
 
 /** @} */
 
+/**
+ * @addtogroup IMFS
+ *
+ * @{
+ */
+
 /*
  * Major device number for the IMFS. This is not a real device number because
  * the IMFS is just a file system and does not have a driver.
@@ -594,6 +602,7 @@ extern bool IMFS_is_imfs_instance(
   const rtems_filesystem_location_info_t *loc
 );
 
+/** @} */
 
 /**
  * @defgroup IMFSGenericNodes IMFS Generic Nodes
@@ -614,10 +623,10 @@ extern bool IMFS_is_imfs_instance(
 /**
  * @brief Makes a generic IMFS node.
  *
- * @param[in] path is a pointer to the new generic IMFS node.
- * @param[in] mode is the node mode.
- * @param[in] node_control is the node control.
- * @param[in] context is the node control handler context.
+ * @param[in] path The path to the new generic IMFS node.
+ * @param[in] mode The node mode.
+ * @param[in] node_control The node control.
+ * @param[in] context The node control handler context.
  *
  * @retval 0 Successful operation.
  * @retval -1 An error occurred.  The @c errno indicates the error.
@@ -661,6 +670,12 @@ extern int IMFS_make_generic_node(
 /** @} */
 
 /**
+ * @addtogroup IMFS
+ *
+ * @{
+ */
+
+/**
  * @brief Mount an IMFS.
  */
 extern int IMFS_mount(
@@ -757,7 +772,6 @@ extern ssize_t memfile_write(
 
 /** @} */
 
-
 /**
  * @name IMFS Device Node Handlers
  *
@@ -767,7 +781,6 @@ extern ssize_t memfile_write(
  * @{
  */
 
-
 extern int device_open(
   rtems_libio_t *iop,            /* IN  */
   const char    *pathname,       /* IN  */
@@ -942,6 +955,8 @@ static inline IMFS_jnode_t *IMFS_create_node(
   );
 }
 
+/** @} */
+
 /**
  * @addtogroup IMFSGenericNodes
  *
@@ -983,8 +998,6 @@ static inline dev_t IMFS_generic_get_device_identifier_by_node(
 
 /** @} */
 
-/** @} */
-
 #ifdef __cplusplus
 }
 #endif




More information about the vc mailing list