doc : Corrections to memory_map doc page
Few lines in the doc were out of sync with the code base. Jira: ZEP-312 Change-Id: Ic0d3508f0f903e43000e17b4a32c1280ae0978dc Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
This commit is contained in:
parent
80f0de8604
commit
a409b3db7a
1 changed files with 5 additions and 5 deletions
|
@ -116,7 +116,7 @@ when all the memory blocks are in use.
|
||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
char *block_ptr;
|
void *block_ptr;
|
||||||
|
|
||||||
task_mem_map_alloc(MYMAP, &block_ptr, TICKS_UNLIMITED);
|
task_mem_map_alloc(MYMAP, &block_ptr, TICKS_UNLIMITED);
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ in the specified time.
|
||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
char *block_ptr;
|
void *block_ptr;
|
||||||
|
|
||||||
if (task_mem_map_alloc(MYMAP, &block_ptr, 5) == RC_OK)) {
|
if (task_mem_map_alloc(MYMAP, &block_ptr, 5) == RC_OK)) {
|
||||||
/* utilize memory block */
|
/* utilize memory block */
|
||||||
|
@ -146,7 +146,7 @@ This code gives an immediate warning when all memory blocks are in use.
|
||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
char *block_ptr;
|
void *block_ptr;
|
||||||
|
|
||||||
if (task_mem_map_alloc(MYMAP, &block_ptr, TICKS_NONE) == RC_OK) {
|
if (task_mem_map_alloc(MYMAP, &block_ptr, TICKS_NONE) == RC_OK) {
|
||||||
/* utilize memory block */
|
/* utilize memory block */
|
||||||
|
@ -162,11 +162,11 @@ This code releases a memory block back when it is no longer needed.
|
||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
char *block_ptr;
|
void *block_ptr;
|
||||||
|
|
||||||
task_mem_map_alloc(MYMAP, &block_ptr, TICKS_UNLIMITED);
|
task_mem_map_alloc(MYMAP, &block_ptr, TICKS_UNLIMITED);
|
||||||
/* use memory block */
|
/* use memory block */
|
||||||
task_mem_map_free(&block_ptr);
|
task_mem_map_free(MYMAP, &block_ptr);
|
||||||
|
|
||||||
|
|
||||||
APIs
|
APIs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue