Lines Matching defs:pt_refcnt
48 int pt_refcnt; /* reference count for ptm_rdq/pts_rdq uses */
67 * Values of pt_refcnt: -1 if a writer is accessing the struct
73 while ((p)->pt_refcnt < 0) \
75 (p)->pt_refcnt++; \
81 while ((p)->pt_refcnt != 0) \
83 (p)->pt_refcnt = -1; \
89 ASSERT((p)->pt_refcnt > 0); \
90 if ((--((p)->pt_refcnt)) == 0) \
97 ASSERT((p)->pt_refcnt == -1); \
98 (p)->pt_refcnt = 0; \