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
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) {