This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 1fc3de4518 arch/textheap: add _heapmember declare for text and data 
heap
1fc3de4518 is described below

commit 1fc3de45189cc45b05fa87abcd0828c34708938f
Author: dongjiuzhu1 <dongjiuz...@xiaomi.com>
AuthorDate: Fri Nov 10 11:49:19 2023 +0800

    arch/textheap: add _heapmember declare for text and data heap
    
    It was accidentally deleted on PR:#11043
    
    Signed-off-by: dongjiuzhu1 <dongjiuz...@xiaomi.com>
---
 include/nuttx/arch.h | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h
index 3aac4c6228..227ef8f720 100644
--- a/include/nuttx/arch.h
+++ b/include/nuttx/arch.h
@@ -760,6 +760,18 @@ FAR void *up_textheap_memalign(size_t align, size_t size);
 void up_textheap_free(FAR void *p);
 #endif
 
+/****************************************************************************
+ * Name: up_textheap_heapmember
+ *
+ * Description:
+ *   Test if memory is from text heap.
+ *
+ ****************************************************************************/
+
+#if defined(CONFIG_ARCH_USE_TEXT_HEAP)
+bool up_textheap_heapmember(FAR void *p);
+#endif
+
 /****************************************************************************
  * Name: up_dataheap_memalign
  *
@@ -784,6 +796,18 @@ FAR void *up_dataheap_memalign(size_t align, size_t size);
 void up_dataheap_free(FAR void *p);
 #endif
 
+/****************************************************************************
+ * Name: up_dataheap_heapmember
+ *
+ * Description:
+ *   Test if memory is from data heap.
+ *
+ ****************************************************************************/
+
+#if defined(CONFIG_ARCH_USE_DATA_HEAP)
+bool up_dataheap_heapmember(FAR void *p);
+#endif
+
 /****************************************************************************
  * Name: up_copy_section
  *

Reply via email to