[#] http://marc.info/?l=openbsd-cvs&m=140833480608756&w=2
openbsd-cvs(obsdave,2) — All
2014-08-18 08:55:07


Module name: src
Changes by: dlg@cvs.openbsd.org 2014/08/17 22:06:16

Modified files:
share/man/man9 : Makefile mbuf.9
sys/kern : uipc_mbuf.c
sys/sys : mbuf.h

Log message:
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