summaryrefslogtreecommitdiff
path: root/docs/application/queue.md
blob: 5e8ae15037fe58128e6d371ae77d2d4ab9ad7062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Queue

---

## Object Definitions

```c
typedef struct _kpl_queue_item {
    KPL_SLAB_LIST_HEADER(struct _kpl_queue_item);
    kpl_any any;
} kpl_queue_item;

typedef struct _kpl_queue {
    KPL_POOL_HEADER(strcut _kpl_queue);
    uint64_t length;
    kpl_interface *interface;
    kpl_pool_any *head, *tail;
} kpl_queue;
```