diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-03 13:27:41 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-03 13:27:41 -0400 |
| commit | be4f67c834719a8d12f5588d42d64bd39d1cb0c6 (patch) | |
| tree | 7b308dc3df225ac16db20e59cf459fc66f0a0250 /docs/application/memory.md | |
| parent | 523649ed10f85bddcad574afa47abaf73d2b0a1e (diff) | |
add more lifecycle
Diffstat (limited to 'docs/application/memory.md')
| -rw-r--r-- | docs/application/memory.md | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
