diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-08 20:21:32 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-08 20:21:32 -0400 |
| commit | 4b46d1e1b306a8573113aa971c5f8811256e2bd0 (patch) | |
| tree | dc26bf8eb4185978063f91dc1c793bf79b06159e /docs/application/buffer.md | |
| parent | 51c371db6ced53b8f9198890672961ef912a9aad (diff) | |
ring buffer pool allocators
Diffstat (limited to 'docs/application/buffer.md')
| -rw-r--r-- | docs/application/buffer.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/docs/application/buffer.md b/docs/application/buffer.md index 92de6ae..40c58e4 100644 --- a/docs/application/buffer.md +++ b/docs/application/buffer.md @@ -6,16 +6,20 @@ ```c typedef struct _kpl_buffer { - KPL_ALLOC_HEADER(struct _kpl_buffer); - size_t byte_length : KPL_ALLOC_POOL_SIZE; - int32_t io_register_index : KPL_ALLOC_WEIGHT; + KPL_DYNAMIC_OBJ_HEADER(); + int32_t byte_length; kpl_interface *interface; + int16_t io_register_index; uint8_t bytes[]; } kpl_buffer; + +typedef struct { + // TODO RING BUFFERS BY POWERS OF TWO +} kpl_buffer_registered_pool; ``` -## Io uring buffer register +## Io uring buffer sparse register -### Set `io_register_index` to -1 of not used +### Set `io_register_index` to -1 if not used ## Unicode Methods |
