diff options
author | 2014-08-18 04:06:16 +0000 | |
---|---|---|
committer | 2014-08-18 04:06:16 +0000 | |
commit | 88f772d3b4592d456c2cf3ce79f15f562a6c2428 (patch) | |
tree | 389c79e599388ba8956c89db3ebfac097e3cce33 /lib/libc/stdlib/malloc.c | |
parent | Add fancy printing of ktrace()'s ops argument (diff) | |
download | wireguard-openbsd-88f772d3b4592d456c2cf3ce79f15f562a6c2428.tar.xz wireguard-openbsd-88f772d3b4592d456c2cf3ce79f15f562a6c2428.zip |
introduce mbuf list and queue apis. both manage fifo lists of mbufs
and a count of the mbufs.
struct mbuf_list and the ml_foo() apis can be used to build lists of
mbufs where you dont need locking (eg, on the stack).
struct mbuf_queue and mq_foo() wrap mbuf_lists with a mutex, and
limits the number of mbufs that can be queued. they can be useful
for moving mbufs between contexts/subsystems.
with help from jmc@ for the manpage bits
mpi@ is keen
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions