mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:16:05 +08:00
mm/heap: Move semaphore related declaration to private header
since other subsystem doesn't need call these function anymore Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Idfb217c412db62d9f17f427310b75bb78785dc50
This commit is contained in:
committed by
Abdelatif Guettouche
parent
0f44e9539e
commit
e14c458747
@@ -70,8 +70,6 @@ extern "C"
|
||||
|
||||
#define kumm_initialize(h,s) umm_initialize(h,s)
|
||||
#define kumm_addregion(h,s) umm_addregion(h,s)
|
||||
#define kumm_trysemaphore() umm_trysemaphore()
|
||||
#define kumm_givesemaphore() umm_givesemaphore()
|
||||
|
||||
#define kumm_calloc(n,s) calloc(n,s);
|
||||
#define kumm_malloc(s) malloc(s)
|
||||
@@ -91,8 +89,6 @@ extern "C"
|
||||
|
||||
# define kmm_initialize(h,s) /* Initialization done by kumm_initialize */
|
||||
# define kmm_addregion(h,s) umm_addregion(h,s)
|
||||
# define kmm_trysemaphore() umm_trysemaphore()
|
||||
# define kmm_givesemaphore() umm_givesemaphore()
|
||||
|
||||
# define kmm_calloc(n,s) calloc(n,s);
|
||||
# define kmm_malloc(s) malloc(s)
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <semaphore.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -185,25 +183,6 @@ void umm_addregion(FAR void *heapstart, size_t heapsize);
|
||||
void kmm_addregion(FAR void *heapstart, size_t heapsize);
|
||||
#endif
|
||||
|
||||
/* Functions contained in mm_sem.c ******************************************/
|
||||
|
||||
void mm_seminitialize(FAR struct mm_heap_s *heap);
|
||||
void mm_takesemaphore(FAR struct mm_heap_s *heap);
|
||||
int mm_trysemaphore(FAR struct mm_heap_s *heap);
|
||||
void mm_givesemaphore(FAR struct mm_heap_s *heap);
|
||||
|
||||
/* Functions contained in umm_sem.c *****************************************/
|
||||
|
||||
int umm_trysemaphore(void);
|
||||
void umm_givesemaphore(void);
|
||||
|
||||
/* Functions contained in kmm_sem.c *****************************************/
|
||||
|
||||
#ifdef CONFIG_MM_KERNEL_HEAP
|
||||
int kmm_trysemaphore(void);
|
||||
void kmm_givesemaphore(void);
|
||||
#endif
|
||||
|
||||
/* Functions contained in mm_malloc.c ***************************************/
|
||||
|
||||
FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size);
|
||||
|
||||
Reference in New Issue
Block a user