refcnt
int32 refcnt;
refcnt = dev->refcnt++;
if (refcnt == 0) {
if (--dev->refcnt == 0) {
nbd_devices[i].refcnt = 0;
vint32 refcnt;
struct refcnt task_refs;
struct refcnt task_refs;
volatile u_int *refcnt;
refcnt = n->m_ext.ext_cnt = &m->m_ext.ext_count;
refcnt = m->m_ext.ext_cnt;
if (*refcnt == 1)
*refcnt += 1;
atomic_add_int(refcnt, 1);
volatile u_int *refcnt;
refcnt = &memoryBuffer->m_ext.ext_count;
refcnt = memoryBuffer->m_ext.ext_cnt;
mref = __containerof(refcnt, struct mbuf, m_ext.ext_count);
if (*refcnt == 1 || atomic_add((int32*)refcnt, -1) == 1) {
refcnt_init(struct refcnt* r)
refcnt_take(struct refcnt* r)
refcnt_rele(struct refcnt* r)
refcnt_rele_wake(struct refcnt* r)
refcnt_finalize(struct refcnt* r, const char* wmesg)
u_int refcnt;
refcnt = --ni->ni_refcnt;
return refcnt;
int refcnt; /* number of windows using colormap */