summaryrefslogtreecommitdiff
path: root/include/microkernel
diff options
context:
space:
mode:
authorL.S. Cook <leonax.cook@intel.com>2016-02-10 07:32:43 -0800
committerGerrit Code Review <gerrit@zephyrproject.org>2016-02-11 01:15:43 +0000
commitf6d2c8cb5b642862e95882b3ffc9224b848d67c2 (patch)
treee8db2942683dbf28b5d6ff7ff59ec5368960e73b /include/microkernel
parent32151afbda543d0aa91df495c83a7ce72123fa87 (diff)
doc: Migrating API edit on microkernel memory_map.h
Edited API comments on memory_map.h to be consistent throughout microkernel APIs and corrected spacing on descriptions Change-Id: I14dae30decccf7385e9fea6d841c3e54fb1a9bb3 Signed-off-by: L.S. Cook <leonax.cook@intel.com>
Diffstat (limited to 'include/microkernel')
-rw-r--r--include/microkernel/memory_map.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/include/microkernel/memory_map.h b/include/microkernel/memory_map.h
index 2fcf9c49f..79c226df0 100644
--- a/include/microkernel/memory_map.h
+++ b/include/microkernel/memory_map.h
@@ -57,7 +57,7 @@ extern void _task_mem_map_free(kmemory_map_t mmap, void **mptr);
*/
/**
- * @brief Read the number of used blocks in a memory map
+ * @brief Read the number of used blocks in a memory map.
*
* This routine returns the number of blocks in use for the memory map.
*
@@ -68,7 +68,7 @@ extern void _task_mem_map_free(kmemory_map_t mmap, void **mptr);
extern int task_mem_map_used_get(kmemory_map_t map);
/**
- * @brief Return memory map block
+ * @brief Return memory map block.
*
* This routine returns a block to the specified memory map.
*
@@ -80,32 +80,33 @@ extern int task_mem_map_used_get(kmemory_map_t map);
#define task_mem_map_free(m, p) _task_mem_map_free(m, p)
/**
- * @brief Allocate memory map block
+ * @brief Allocate memory map block.
*
* This routine allocates a block from memory map @a mmap, and saves the
- * block's address in the area indicated by @a mptr. If no block is available
+ * block's address in the area indicated by @a mptr. When no block is available,
* the routine waits until either one can be allocated, or until the specified
* time limit is reached.
*
* @param mmap Memory map name.
* @param mptr Pointer to memory block address area.
- * @param timeout Affects the action taken should the memory map be exhausted.
- * If TICKS_NONE, then return immediately. If TICKS_UNLIMITED, then wait as
- * long as necessary. Otherwise wait up to the specified number of ticks before
- * timing out.
+ * @param timeout Determines the action to take when the memory map is exhausted.
+ * For TICKS_NONE, return immediately.
+ * For TICKS_UNLIMITED, wait as long as necessary.
+ * Otherwise, wait up to the specified number of ticks before timing out.
*
* @retval RC_OK Successfully allocated memory block.
* @retval RC_TIME Timed out while waiting for memory block.
* @retval RC_FAIL Failed to immediately allocate memory block when
- * @a timeout = TICKS_NONE
+ * @a timeout = TICKS_NONE.
+ * @sa TICKS_NONE, TICKS_UNLIMITED
*/
extern int task_mem_map_alloc(kmemory_map_t mmap, void **mptr, int32_t timeout);
/**
* @brief Define a private microkernel memory map.
*
- * @param name Memory map name.
- * @param blocks Number of blocks.
+ * @param name Memory map name.
+ * @param blocks Number of blocks.
* @param block_size Size of each block, in bytes.
*/
#define DEFINE_MEM_MAP(name, blocks, block_size) \