Brian Somers [EMAIL PROTECTED] wrote:
Of course m_get() et. al. seem to manage to get MSIZE aligned pointers back
from uma_zalloc_arg(zone_mbuf...) anyway, but surely that's an implementation
side effect and the align argument should be corrected.
This change looks right to me, but I'm hardly
Brian Somers [EMAIL PROTECTED] wrote:
Of course m_get() et. al. seem to manage to get MSIZE aligned pointers
back
from uma_zalloc_arg(zone_mbuf...) anyway, but surely that's an
implementation
side effect and the align argument should be corrected.
This change looks right to me, but I'm
I'm a bit confused by this uma_zcreate() call in kern_mbuf.c:
zone_mbuf = uma_zcreate(Mbuf, MSIZE, mb_ctor_mbuf, mb_dtor_mbuf,
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_MAXBUCKET);
Given that dtom() is defined as:
#define dtom(x) ((struct mbuf *)((intptr_t)(x)