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
|
@ -11,6 +11,7 @@ add_library(kernel
|
|||
mailbox.c
|
||||
mem_slab.c
|
||||
mempool.c
|
||||
mempool_sys.c
|
||||
msg_q.c
|
||||
mutex.c
|
||||
pipes.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue