CVSROOT: /cvs Module name: src Changes by: clau...@cvs.openbsd.org 2018/11/12 00:45:52
Modified files: sys/kern : uipc_mbuf.c sys/sys : mbuf.h Log message: Introduce m_align() a function that works like M_ALIGN() but works with all types of mbufs. Also introduce some KASSERT in the m_*space() functions to ensure that no negative number is returned. This also introduces two internal macros M_SIZE() & M_DATABUF() which return the right size and start pointer of the mbuf data area. Use it in a few obvious places to simplify code. OK bluhm@