Re: a query in mb_free_ext()

2012-08-17 Thread John Baldwin
On Thursday, August 16, 2012 11:33:12 pm Vijay Singh wrote: > Does anyone here understand this bit of code in mb_free_ext()? > > /* Free attached storage if this mbuf is the only reference to it. */ > if (*(m->m_ext.ref_cnt) == 1 || > atomic_fetchadd_int(m->m_ext.ref_c

a query in mb_free_ext()

2012-08-16 Thread Vijay Singh
Does anyone here understand this bit of code in mb_free_ext()? /* Free attached storage if this mbuf is the only reference to it. */ if (*(m->m_ext.ref_cnt) == 1 || atomic_fetchadd_int(m->m_ext.ref_cnt, -1) == 1) { switch (m->m_ext.ext_type) {