Home
last modified time | relevance | path

Searched refs:rs_refcnt (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Drefstr.c38 size_t size = sizeof (rsp->rs_size) + sizeof (rsp->rs_refcnt) + in refstr_alloc()
44 rsp->rs_refcnt = 1; in refstr_alloc()
58 atomic_inc_32(&rsp->rs_refcnt); in refstr_hold()
64 if (atomic_dec_32_nv(&rsp->rs_refcnt) == 0) in refstr_rele()
/illumos-gate/usr/src/cmd/svc/configd/
H A Dsnapshot.c59 sp->rs_refcnt++; in snapshot_alloc()
68 assert(sp->rs_refcnt == 0 && sp->rs_childref == 0); in snapshot_free()
93 sp->rs_refcnt++; in rc_snapshot_hold()
94 assert(sp->rs_refcnt > 0); in rc_snapshot_hold()
103 assert(sp->rs_refcnt > 0); in rc_snapshot_rele()
104 sp->rs_refcnt--; in rc_snapshot_rele()
106 sp->rs_refcnt == 0 && sp->rs_childref == 0); in rc_snapshot_rele()
132 sp->rs_refcnt == 0 && sp->rs_childref == 0); in rc_snaplevel_rele()
H A Dconfigd.h414 uint32_t rs_refcnt; /* references from rc_nodes */ member
/illumos-gate/usr/src/uts/common/sys/
H A Drefstr_impl.h45 uint32_t rs_refcnt; /* reference count */ member
/illumos-gate/usr/src/uts/common/sys/ib/clients/daplt/
H A Ddaplt.h112 uint32_t rs_refcnt; member
119 daplka_resource::rs_refcnt))
/illumos-gate/usr/src/uts/common/io/ib/clients/daplt/
H A Ddaplt.c408 #define DAPLKA_RS_REFCNT(rp) ((rp)->header.rs_refcnt)
412 (rp)->header.rs_refcnt++; \
413 ASSERT((rp)->header.rs_refcnt != 0); \
419 ASSERT((rp)->header.rs_refcnt != 0); \
420 if (--(rp)->header.rs_refcnt == 0) { \
430 (rp)->header.rs_refcnt = 1; \
9835 rp->rs_refcnt++; in daplka_hash_generic_lookup()
9836 ASSERT(rp->rs_refcnt != 0); in daplka_hash_generic_lookup()