[rtems commit] libfs: Doxygen Enhancement Task #1

Jennifer Averett jennifer at rtems.org
Thu Dec 20 15:41:53 UTC 2012


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

Author:    Alex Ivanov <alexivanov97 at gmail.com>
Date:      Thu Dec 20 09:45:31 2012 -0600

libfs: Doxygen Enhancement Task #1

---

 cpukit/libfs/src/imfs/imfs.h                    |  164 ++++++++++++++++++++++-
 cpukit/libfs/src/imfs/imfs_chown.c              |   12 +-
 cpukit/libfs/src/imfs/imfs_config.c             |    7 +
 cpukit/libfs/src/imfs/imfs_debug.c              |   26 +---
 cpukit/libfs/src/imfs/imfs_directory.c          |   24 +---
 cpukit/libfs/src/imfs/imfs_fifo.c               |    9 +-
 cpukit/libfs/src/imfs/imfs_fsunmount.c          |   13 +-
 cpukit/libfs/src/imfs/imfs_handlers_device.c    |    9 +-
 cpukit/libfs/src/imfs/imfs_handlers_directory.c |    9 +-
 cpukit/libfs/src/imfs/imfs_handlers_link.c      |    9 +-
 cpukit/libfs/src/imfs/imfs_handlers_memfile.c   |    9 +-
 cpukit/libfs/src/imfs/imfs_link.c               |   13 +-
 cpukit/libfs/src/imfs/imfs_load_tar.c           |   57 +-------
 cpukit/libfs/src/imfs/imfs_make_generic_node.c  |    7 +
 cpukit/libfs/src/imfs/imfs_mknod.c              |   11 +-
 cpukit/libfs/src/imfs/imfs_readlink.c           |   12 +-
 cpukit/libfs/src/imfs/imfs_rename.c             |   12 +-
 cpukit/libfs/src/imfs/imfs_rmnod.c              |   12 +-
 cpukit/libfs/src/imfs/imfs_symlink.c            |   13 +-
 cpukit/libfs/src/imfs/imfs_unmount.c            |    9 +-
 cpukit/libfs/src/imfs/memfile.c                 |   36 +----
 21 files changed, 301 insertions(+), 172 deletions(-)

diff --git a/cpukit/libfs/src/imfs/imfs.h b/cpukit/libfs/src/imfs/imfs.h
index 6615b1b..646e988 100644
--- a/cpukit/libfs/src/imfs/imfs.h
+++ b/cpukit/libfs/src/imfs/imfs.h
@@ -321,20 +321,79 @@ extern int IMFS_initialize_support(
   const rtems_filesystem_operations_table *op_table,
   const IMFS_node_control *const node_controls [IMFS_TYPE_COUNT]
 );
-
+/**
+ * @brief Unmount this Instance of IMFS
+ */
 extern void IMFS_fsunmount(
    rtems_filesystem_mount_table_entry_t *mt_entry
 );
 
+/**
+ * @brief RTEMS Load Tarfs
+ * 
+ * This file implements the "mount" procedure for tar-based IMFS
+ * extensions.  The TAR is not actually mounted under the IMFS.
+ * Directories from the TAR file are created as usual in the IMFS.
+ * File entries are created as IMFS_LINEAR_FILE nodes with their nods
+ * pointing to addresses in the TAR image.
+ *
+ * Here we create the mountpoint directory and load the tarfs at
+ * that node.  Once the IMFS has been mounted, we work through the
+ * tar image and perform as follows:
+ *  - For directories, simply call mkdir().  The IMFS creates nodes as
+ *    needed.
+ *  - For files, we make our own calls to IMFS eval_for_make and
+ *    create_node.
+ * 
+ * TAR file format:
+ *
+ *  Offset   Length   Contents
+ *    0    100 bytes  File name ('\0' terminated, 99 maxmum length)
+ *  100      8 bytes  File mode (in octal ascii)
+ *  108      8 bytes  User ID (in octal ascii)
+ *  116      8 bytes  Group ID (in octal ascii)
+ *  124     12 bytes  File size (s) (in octal ascii)
+ *  136     12 bytes  Modify time (in octal ascii)
+ *  148      8 bytes  Header checksum (in octal ascii)
+ *  156      1 bytes  Link flag
+ *  157    100 bytes  Linkname ('\0' terminated, 99 maxmum length)
+ *  257      8 bytes  Magic PAX ("ustar\0" + 2 bytes padding)
+ *  257      8 bytes  Magic GNU tar ("ustar  \0")
+ *  265     32 bytes  User name ('\0' terminated, 31 maxmum length)
+ *  297     32 bytes  Group name ('\0' terminated, 31 maxmum length)
+ *  329      8 bytes  Major device ID (in octal ascii)
+ *  337      8 bytes  Minor device ID (in octal ascii)
+ *  345    167 bytes  Padding
+ *  512   (s+p)bytes  File contents (s+p) := (((s) + 511) & ~511),
+ *                    round up to 512 bytes
+ *
+ *  Checksum:
+ *  int i, sum;
+ *  char* header = tar_header_pointer;
+ *  sum = 0;
+ *  for(i = 0; i < 512; i++)
+ *      sum += 0xFF & header[i];
+ */
 extern int rtems_tarfs_load(
    const char *mountpoint,
    uint8_t *tar_image,
    size_t tar_size
 );
 
+/**
+ * @brief IMFS Dump
+ * 
+ * This routine dumps the entire IMFS that is mounted at the root
+ * directory.
+ *
+ * NOTE: Assuming the "/" directory is bad.
+ *       Not checking that the starting directory is in an IMFS is bad.
+ */
 extern void IMFS_dump( void );
 
-/*
+/**
+ * @brief IMFS Memory File Maximum Size
+ * 
  * Return the size of the largest file which can be created
  * using the IMFS memory file type.
  */
@@ -382,6 +441,13 @@ extern void IMFS_eval_path(
   rtems_filesystem_eval_path_context_t *ctx
 );
 
+/**
+ * @brief IMFS Create a New Link Node
+ * 
+ * The following rouine creates a new link node under parent with the
+ * name given in name.  The link node is set to point to the node at
+ * to_loc.
+ */
 extern int IMFS_link(
   const rtems_filesystem_location_info_t *parentloc,
   const rtems_filesystem_location_info_t *targetloc,
@@ -389,12 +455,23 @@ extern int IMFS_link(
   size_t namelen
 );
 
+/**
+ * @brief IMFS Change Owner
+ * 
+ * This routine is the implementation of the chown() system
+ * call for the IMFS.
+ */
 extern int IMFS_chown(
   const rtems_filesystem_location_info_t *loc,
   uid_t owner,
   gid_t group
 );
 
+/**
+ * @brief Create a IMFS Node
+ * 
+ * Routine to create a node in the IMFS file system.
+ */
 extern int IMFS_mknod(
   const rtems_filesystem_location_info_t *parentloc,
   const char *name,
@@ -436,6 +513,9 @@ extern bool IMFS_is_imfs_instance(
   const rtems_filesystem_location_info_t *loc
 );
 
+/**
+ * @brief IMFS Make a Generic Node
+ */
 extern int IMFS_make_generic_node(
   const char *path,
   mode_t mode,
@@ -450,6 +530,9 @@ extern int IMFS_mount(
   rtems_filesystem_mount_table_entry_t *mt_entry  /* IN */
 );
 
+/**
+ * @brief Unmount an IMFS
+ */
 extern int IMFS_unmount(
   rtems_filesystem_mount_table_entry_t *mt_entry  /* IN */
 );
@@ -458,17 +541,54 @@ extern IMFS_jnode_t *IMFS_memfile_remove(
  IMFS_jnode_t  *the_jnode         /* IN/OUT */
 );
 
+/**
+ * @brief Truncate a Memory File
+ *
+ * This routine processes the ftruncate() system call.
+ */
 extern int memfile_ftruncate(
   rtems_libio_t *iop,               /* IN  */
   off_t          length             /* IN  */
 );
 
+/**
+ * @brief IMFS Read Next Directory
+ * 
+ * This routine will read the next directory entry based on the directory
+ * offset. The offset should be equal to -n- time the size of an individual
+ * dirent structure. If n is not an integer multiple of the sizeof a
+ * dirent structure, an integer division will be performed to determine
+ * directory entry that will be returned in the buffer. Count should reflect
+ * -m- times the sizeof dirent bytes to be placed in the buffer.
+ * If there are not -m- dirent elements from the current directory position
+ * to the end of the exisiting file, the remaining entries will be placed in
+ * the buffer and the returned value will be equal to -m actual- times the
+ * size of a directory entry.
+ */
 extern ssize_t imfs_dir_read(
   rtems_libio_t *iop,              /* IN  */
   void          *buffer,           /* IN  */
   size_t         count             /* IN  */
 );
 
+/**
+ * @name IMFS Memory File Handlers
+ *
+ * This section contains the set of handlers used to process operations on
+ * IMFS memory file nodes.  The memory files are created in memory using
+ * malloc'ed memory.  Thus any data stored in one of these files is lost
+ * at system shutdown unless special arrangements to copy the data to
+ * some type of non-volailte storage are made by the application.
+ * 
+ * @{
+ */
+
+/**
+ * @brief Open a Memory File
+ *
+ * This routine processes the open() system call.  Note that there is
+ * nothing special to be done at open() time.
+ */
 extern int memfile_open(
   rtems_libio_t *iop,             /* IN  */
   const char    *pathname,        /* IN  */
@@ -476,18 +596,31 @@ extern int memfile_open(
   mode_t         mode             /* IN  */
 );
 
+/**
+ * @brief Read a Memory File
+ *
+ * This routine processes the read() system call.
+ */
 extern ssize_t memfile_read(
   rtems_libio_t *iop,             /* IN  */
   void          *buffer,          /* IN  */
   size_t         count            /* IN  */
 );
 
+/**
+ * @brief Write a Memory File
+ *
+ * This routine processes the write() system call.
+ */
 extern ssize_t memfile_write(
   rtems_libio_t *iop,             /* IN  */
   const void    *buffer,          /* IN  */
   size_t         count            /* IN  */
 );
 
+/** @} */
+
+
 /**
  * @name IMFS Device Node Handlers
  *
@@ -555,6 +688,13 @@ extern int IMFS_fchmod(
   mode_t mode
 );
 
+/**
+ * @brief IMFS Create a New Symbolic Link Node
+ * 
+ * The following rouine creates a new symbolic link node under parent
+ * with the name given in name.  The node is set to point to the node at
+ * to_loc.
+ */
 extern int IMFS_symlink(
   const rtems_filesystem_location_info_t *parentloc,
   const char *name,
@@ -562,12 +702,25 @@ extern int IMFS_symlink(
   const char *target
 );
 
+/**
+ * @brief IMFS Put Symbolic Link into Buffer
+ * 
+ * The following rouine puts the symblic links destination name into
+ * buff.
+ * 
+ */
 extern ssize_t IMFS_readlink(
   const rtems_filesystem_location_info_t *loc,
   char *buf,
   size_t bufsize
 );
 
+/**
+ * @brief IMFS Rename
+ * 
+ * The following rouine creates a new link node under parent with the
+ * name given in name and removes the old.
+ */
 extern int IMFS_rename(
   const rtems_filesystem_location_info_t *oldparentloc,
   const rtems_filesystem_location_info_t *oldloc,
@@ -575,7 +728,12 @@ extern int IMFS_rename(
   const char *name,
   size_t namelen
 );
-
+/**
+ * @brief IMFS Node Removal Handler
+ * 
+ * This file contains the handler used to remove a node when a file type
+ * does not require special actions.
+ */
 extern int IMFS_rmnod(
   const rtems_filesystem_location_info_t *parentloc,
   const rtems_filesystem_location_info_t *loc
diff --git a/cpukit/libfs/src/imfs/imfs_chown.c b/cpukit/libfs/src/imfs/imfs_chown.c
index 63f860c..ccfc5a5 100644
--- a/cpukit/libfs/src/imfs/imfs_chown.c
+++ b/cpukit/libfs/src/imfs/imfs_chown.c
@@ -1,9 +1,11 @@
-/*
- *  IMFS_chown
- *
- *  This routine is the implementation of the chown() system
- *  call for the IMFS.
+/**
+ * @file
  *
+ * @brief IMFS Change Owner
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_config.c b/cpukit/libfs/src/imfs/imfs_config.c
index 92e7846..ddb02b7 100644
--- a/cpukit/libfs/src/imfs/imfs_config.c
+++ b/cpukit/libfs/src/imfs/imfs_config.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief IMFS Limits and Options
+ * @ingroup IMFS
+ */
+
 /*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
diff --git a/cpukit/libfs/src/imfs/imfs_debug.c b/cpukit/libfs/src/imfs/imfs_debug.c
index 1bc280c..1198ec9 100644
--- a/cpukit/libfs/src/imfs/imfs_debug.c
+++ b/cpukit/libfs/src/imfs/imfs_debug.c
@@ -1,6 +1,11 @@
-/*
- *  IMFS debug support routines
+/**
+ * @file
  *
+ * @brief IMFS Debug Support
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
@@ -119,16 +124,6 @@ static void IMFS_dump_directory(
   }
 }
 
-/*
- *  IMFS_dump
- *
- *  This routine dumps the entire IMFS that is mounted at the root
- *  directory.
- *
- *  NOTE: Assuming the "/" directory is bad.
- *        Not checking that the starting directory is in an IMFS is bad.
- */
-
 void IMFS_dump( void )
 {
   fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" );
@@ -137,13 +132,6 @@ void IMFS_dump( void )
   fprintf(stdout, "***************      End of Dump       ***************\n" );
 }
 
-/*
- *  IMFS_memfile_maximum_size()
- *
- *  This routine returns the size of the largest file which can be created
- *  using the IMFS memory file type.
- *
- */
 int IMFS_memfile_maximum_size( void )
 {
   return IMFS_MEMFILE_MAXIMUM_SIZE;
diff --git a/cpukit/libfs/src/imfs/imfs_directory.c b/cpukit/libfs/src/imfs/imfs_directory.c
index 99d990d..c344af4 100644
--- a/cpukit/libfs/src/imfs/imfs_directory.c
+++ b/cpukit/libfs/src/imfs/imfs_directory.c
@@ -1,6 +1,11 @@
-/*
- *  IMFS Directory Access Routines
+/**
+ * @file
  *
+ * @brief IMFS Read Next Directory
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
@@ -18,21 +23,6 @@
 #include <string.h>
 #include <dirent.h>
 
-/*
- *  imfs_dir_read
- *
- *  This routine will read the next directory entry based on the directory
- *  offset. The offset should be equal to -n- time the size of an individual
- *  dirent structure. If n is not an integer multiple of the sizeof a
- *  dirent structure, an integer division will be performed to determine
- *  directory entry that will be returned in the buffer. Count should reflect
- *  -m- times the sizeof dirent bytes to be placed in the buffer.
- *  If there are not -m- dirent elements from the current directory position
- *  to the end of the exisiting file, the remaining entries will be placed in
- *  the buffer and the returned value will be equal to -m actual- times the
- *  size of a directory entry.
- */
-
 ssize_t imfs_dir_read(
   rtems_libio_t  *iop,
   void           *buffer,
diff --git a/cpukit/libfs/src/imfs/imfs_fifo.c b/cpukit/libfs/src/imfs/imfs_fifo.c
index 8601ef7..03e6936 100644
--- a/cpukit/libfs/src/imfs/imfs_fifo.c
+++ b/cpukit/libfs/src/imfs/imfs_fifo.c
@@ -1,6 +1,11 @@
-/*
- * imfs_fifo.c: FIFO support for IMFS
+/**
+ * @file
  *
+ * @brief FIFO Support
+ * @ingroup IMFS
+ */
+
+/*
  * Author: Wei Shen <cquark at gmail.com>
  *
  * The license and distribution terms for this file may be
diff --git a/cpukit/libfs/src/imfs/imfs_fsunmount.c b/cpukit/libfs/src/imfs/imfs_fsunmount.c
index eb3d22d..ae6f39a 100644
--- a/cpukit/libfs/src/imfs/imfs_fsunmount.c
+++ b/cpukit/libfs/src/imfs/imfs_fsunmount.c
@@ -1,6 +1,11 @@
-/*
- *  IMFS Initialization
+/**
+ * @file
  *
+ * @brief Unmount this Instance of IMFS
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
@@ -15,10 +20,6 @@
 
 #include "imfs.h"
 
-/*
- *  IMFS_fsunmount
- */
-
 #define jnode_get_control( jnode ) \
   (&jnode->info.directory.Entries)
 
diff --git a/cpukit/libfs/src/imfs/imfs_handlers_device.c b/cpukit/libfs/src/imfs/imfs_handlers_device.c
index a7f32f7..899b3dc 100644
--- a/cpukit/libfs/src/imfs/imfs_handlers_device.c
+++ b/cpukit/libfs/src/imfs/imfs_handlers_device.c
@@ -1,6 +1,11 @@
-/*
- *  Device Operations Table for the IMFS
+/**
+ * @file
  *
+ * @brief Device Operations Table
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_handlers_directory.c b/cpukit/libfs/src/imfs/imfs_handlers_directory.c
index 9dcdcf2..61ca552 100644
--- a/cpukit/libfs/src/imfs/imfs_handlers_directory.c
+++ b/cpukit/libfs/src/imfs/imfs_handlers_directory.c
@@ -1,6 +1,11 @@
-/*
- *  Operations Table for Directories for the IMFS
+/**
+ * @file
  *
+ * @brief Operations Table for Directories
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_handlers_link.c b/cpukit/libfs/src/imfs/imfs_handlers_link.c
index 2c4ad3f..5118eb5 100644
--- a/cpukit/libfs/src/imfs/imfs_handlers_link.c
+++ b/cpukit/libfs/src/imfs/imfs_handlers_link.c
@@ -1,6 +1,11 @@
-/*
- *  Link Operations Table for the IMFS
+/**
+ * @file
  *
+ * @brief Link Operations Table for the IMFS
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_handlers_memfile.c b/cpukit/libfs/src/imfs/imfs_handlers_memfile.c
index 6953319..d0c5912 100644
--- a/cpukit/libfs/src/imfs/imfs_handlers_memfile.c
+++ b/cpukit/libfs/src/imfs/imfs_handlers_memfile.c
@@ -1,6 +1,11 @@
-/*
- *  Memfile Operations Tables for the IMFS
+/**
+ * @file
  *
+ * @brief Memfile Operations Tables
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_link.c b/cpukit/libfs/src/imfs/imfs_link.c
index 35c3863..fdfbd33 100644
--- a/cpukit/libfs/src/imfs/imfs_link.c
+++ b/cpukit/libfs/src/imfs/imfs_link.c
@@ -1,10 +1,11 @@
-/*
- *  IMFS_link
- *
- *  The following rouine creates a new link node under parent with the
- *  name given in name.  The link node is set to point to the node at
- *  to_loc.
+/**
+ * @file
  *
+ * @brief IMFS Create a New Link Node
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-2010.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_load_tar.c b/cpukit/libfs/src/imfs/imfs_load_tar.c
index e51194f..723699b 100644
--- a/cpukit/libfs/src/imfs/imfs_load_tar.c
+++ b/cpukit/libfs/src/imfs/imfs_load_tar.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief RTEMS Load Tarfs
+ * @ingroup IMFS
+ */
+
 /*
  *  COPYRIGHT (c) 1989-2010.
  *  On-Line Applications Research Corporation (OAR).
@@ -11,14 +18,6 @@
 #include "config.h"
 #endif
 
-/*
- * This file implements the "mount" procedure for tar-based IMFS
- * extensions.  The TAR is not actually mounted under the IMFS.
- * Directories from the TAR file are created as usual in the IMFS.
- * File entries are created as IMFS_LINEAR_FILE nodes with their nods
- * pointing to addresses in the TAR image.
- */
-
 #include "imfs.h"
 
 #include <sys/stat.h>
@@ -27,52 +26,10 @@
 
 #include <rtems/untar.h>
 
-/*
- * TAR file format:
- *
- *   Offset   Length   Contents
- *     0    100 bytes  File name ('\0' terminated, 99 maxmum length)
- *   100      8 bytes  File mode (in octal ascii)
- *   108      8 bytes  User ID (in octal ascii)
- *   116      8 bytes  Group ID (in octal ascii)
- *   124     12 bytes  File size (s) (in octal ascii)
- *   136     12 bytes  Modify time (in octal ascii)
- *   148      8 bytes  Header checksum (in octal ascii)
- *   156      1 bytes  Link flag
- *   157    100 bytes  Linkname ('\0' terminated, 99 maxmum length)
- *   257      8 bytes  Magic PAX ("ustar\0" + 2 bytes padding)
- *   257      8 bytes  Magic GNU tar ("ustar  \0")
- *   265     32 bytes  User name ('\0' terminated, 31 maxmum length)
- *   297     32 bytes  Group name ('\0' terminated, 31 maxmum length)
- *   329      8 bytes  Major device ID (in octal ascii)
- *   337      8 bytes  Minor device ID (in octal ascii)
- *   345    167 bytes  Padding
- *   512   (s+p)bytes  File contents (s+p) := (((s) + 511) & ~511),
- *                     round up to 512 bytes
- *
- *   Checksum:
- *   int i, sum;
- *   char* header = tar_header_pointer;
- *   sum = 0;
- *   for(i = 0; i < 512; i++)
- *       sum += 0xFF & header[i];
- */
-
 #define MAX_NAME_FIELD_SIZE      99
 
 #define MIN(a,b)   ((a)>(b)?(b):(a))
 
-/*
- * rtems_tarfs_load
- *
- * Here we create the mountpoint directory and load the tarfs at
- * that node.  Once the IMFS has been mounted, we work through the
- * tar image and perform as follows:
- *  - For directories, simply call mkdir().  The IMFS creates nodes as
- *    needed.
- *  - For files, we make our own calls to IMFS eval_for_make and
- *    create_node.
- */
 int rtems_tarfs_load(
   const char *mountpoint,
   uint8_t *tar_image,
diff --git a/cpukit/libfs/src/imfs/imfs_make_generic_node.c b/cpukit/libfs/src/imfs/imfs_make_generic_node.c
index 5b7a7d9..f9e03b6 100644
--- a/cpukit/libfs/src/imfs/imfs_make_generic_node.c
+++ b/cpukit/libfs/src/imfs/imfs_make_generic_node.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief IMFS Make a Generic Node
+ * @ingroup IMFS
+ */
+
 /*
  * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
  *
diff --git a/cpukit/libfs/src/imfs/imfs_mknod.c b/cpukit/libfs/src/imfs/imfs_mknod.c
index 2447f74..0344ad5 100644
--- a/cpukit/libfs/src/imfs/imfs_mknod.c
+++ b/cpukit/libfs/src/imfs/imfs_mknod.c
@@ -1,8 +1,11 @@
-/*
- *  IMFS_mknod
- *
- *  Routine to create a node in the IMFS file system.
+/**
+ * @file
  *
+ * @brief Create a IMFS Node
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-2010.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_readlink.c b/cpukit/libfs/src/imfs/imfs_readlink.c
index e20003a..7cbbe5e 100644
--- a/cpukit/libfs/src/imfs/imfs_readlink.c
+++ b/cpukit/libfs/src/imfs/imfs_readlink.c
@@ -1,9 +1,11 @@
-/*
- *  IMFS_readlink
- *
- *  The following rouine puts the symblic links destination name into
- *  buff.
+/**
+ * @file
  *
+ * @brief IMFS Put Symbolic Link into Buffer
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_rename.c b/cpukit/libfs/src/imfs/imfs_rename.c
index e283b9d..8c64263 100644
--- a/cpukit/libfs/src/imfs/imfs_rename.c
+++ b/cpukit/libfs/src/imfs/imfs_rename.c
@@ -1,9 +1,11 @@
-/*
- *  IMFS_rename
- *
- *  The following rouine creates a new link node under parent with the
- *  name given in name and removes the old.
+/**
+ * @file
  *
+ * @brief IMFS Rename
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-2010.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_rmnod.c b/cpukit/libfs/src/imfs/imfs_rmnod.c
index 90e61d9..90a551b 100644
--- a/cpukit/libfs/src/imfs/imfs_rmnod.c
+++ b/cpukit/libfs/src/imfs/imfs_rmnod.c
@@ -1,9 +1,11 @@
-/*
- *  IMFS Node Removal Handler
- *
- *  This file contains the handler used to remove a node when a file type
- *  does not require special actions.
+/**
+ * @file
  *
+ * @brief IMFS Node Removal Handler
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_symlink.c b/cpukit/libfs/src/imfs/imfs_symlink.c
index 00a7f97..546ad26 100644
--- a/cpukit/libfs/src/imfs/imfs_symlink.c
+++ b/cpukit/libfs/src/imfs/imfs_symlink.c
@@ -1,10 +1,11 @@
-/*
- *  IMFS_symlink
- *
- *  The following rouine creates a new symbolic link node under parent
- *  with the name given in name.  The node is set to point to the node at
- *  to_loc.
+/**
+ * @file
  *
+ * @brief IMFS Create a New Symbolic Link Node
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-2009.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/imfs_unmount.c b/cpukit/libfs/src/imfs/imfs_unmount.c
index e7b4267..590439d 100644
--- a/cpukit/libfs/src/imfs/imfs_unmount.c
+++ b/cpukit/libfs/src/imfs/imfs_unmount.c
@@ -1,6 +1,11 @@
-/*
- *  IMFS_unmount
+/**
+ * @file
  *
+ * @brief Unmount an IMFS
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-1999.
  *  On-Line Applications Research Corporation (OAR).
  *
diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c
index 2eb7949..901ebc6 100644
--- a/cpukit/libfs/src/imfs/memfile.c
+++ b/cpukit/libfs/src/imfs/memfile.c
@@ -1,12 +1,11 @@
-/*
- *  IMFS Device Node Handlers
- *
- *  This file contains the set of handlers used to process operations on
- *  IMFS memory file nodes.  The memory files are created in memory using
- *  malloc'ed memory.  Thus any data stored in one of these files is lost
- *  at system shutdown unless special arrangements to copy the data to
- *  some type of non-volailte storage are made by the application.
+/**
+ * @file
  *
+ * @brief IMFS Memory File Handlers
+ * @ingroup IMFS
+ */
+
+/*
  *  COPYRIGHT (c) 1989-2010.
  *  On-Line Applications Research Corporation (OAR).
  *
@@ -71,12 +70,6 @@ void memfile_free_block(
   void *memory
 );
 
-/*
- *  memfile_open
- *
- *  This routine processes the open() system call.  Note that there is
- *  nothing special to be done at open() time.
- */
 int memfile_open(
   rtems_libio_t *iop,
   const char    *pathname,
@@ -109,11 +102,6 @@ int memfile_open(
   return 0;
 }
 
-/*
- *  memfile_read
- *
- *  This routine processes the read() system call.
- */
 ssize_t memfile_read(
   rtems_libio_t *iop,
   void          *buffer,
@@ -133,11 +121,6 @@ ssize_t memfile_read(
   return status;
 }
 
-/*
- *  memfile_write
- *
- *  This routine processes the write() system call.
- */
 ssize_t memfile_write(
   rtems_libio_t *iop,
   const void    *buffer,
@@ -166,11 +149,6 @@ ssize_t memfile_write(
  *  This IMFS_stat() can be used.
  */
 
-/*
- *  memfile_ftruncate
- *
- *  This routine processes the ftruncate() system call.
- */
 int memfile_ftruncate(
   rtems_libio_t        *iop,
   off_t                 length




More information about the vc mailing list