From be4f67c834719a8d12f5588d42d64bd39d1cb0c6 Mon Sep 17 00:00:00 2001 From: nodist Date: Fri, 3 Jul 2026 13:27:41 -0400 Subject: add more lifecycle --- docs/application/memory.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/application/memory.md') diff --git a/docs/application/memory.md b/docs/application/memory.md index a8e75b8..e7f05ba 100644 --- a/docs/application/memory.md +++ b/docs/application/memory.md @@ -7,9 +7,9 @@ ```c #define KPL_ALLOC_POOL_SIZE 40 -#define KPL_TREE_WEIGHT 24 +#define KPL_ALLOC_WEIGHT 24 -#define KPL_ALLOC_HEADER(STRCUT) size_t obj_size : KPL_ALLOC_POOL_SIZE; uint32_t tree_weight : KPL_TREE_WEIGHT; STRCUT *prev +#define KPL_ALLOC_HEADER(STRCUT) size_t obj_size : KPL_ALLOC_POOL_SIZE; uint32_t tree_weight : KPL_ALLOC_WEIGHT; STRCUT *prev typedef struct _kpl_alloc_obj { KPL_ALLOC_HEADER(_kpl_alloc_obj); @@ -39,7 +39,7 @@ typdef strcut _kpl_slab_list_obj { KPL_SLAB_LIST_HEADER(strcut _kpl_slab_list_obj); } kpl_slab_list_obj; -#define KPL_SLAB_TREE_HEADER(STRUCT) STRUCT *prev, *next; uin32_t tree_weight : KPL_TREE_WEIGHT +#define KPL_SLAB_TREE_HEADER(STRUCT) STRUCT *prev, *next; uint32_t tree_weight : KPL_ALLOC_WEIGHT typdef strcut _kpl_slab_tree_obj { KPL_SLAB_TREE_HEADER(struct _kpl_slab_tree_obj); -- cgit v1.2.3