Re: uma_zcreate() call from kern_mbuf.c - bug?

2004-09-10 Thread Dima Dorfman
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

Re: uma_zcreate() call from kern_mbuf.c - bug?

2004-09-10 Thread Brian Somers
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

uma_zcreate() call from kern_mbuf.c - bug?

2004-09-09 Thread Brian Somers
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)