summaryrefslogtreecommitdiff
path: root/docs/application/buffer.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/application/buffer.md')
-rw-r--r--docs/application/buffer.md14
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