kernel: Refactor k_mem_pool APIs into a base and derived level
Almost all of the k_mem_pool API is implemented in terms of three lower level primitives: K_MEM_POOL_DEFINE(), k_mem_pool_alloc() and k_mem_pool_free_id(). These are themselves implemented on top of the lower level sys_mem_pool abstraction. Make this layering explicit by splitting the low level out into its own files: mempool_sys.c/h. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
41220d2bea
commit
e96ac9061f
6 changed files with 169 additions and 155 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <sys/util.h>
|
||||
#include <sys/mempool_base.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <mempool_sys.h>
|
||||
#include <kernel_version.h>
|
||||
#include <random/rand32.h>
|
||||
#include <syscall.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue