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:
Andy Ross 2020-03-31 09:23:11 -07:00 committed by Andrew Boie
commit e96ac9061f
6 changed files with 169 additions and 155 deletions

View file

@ -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>