Lines Matching refs:witness_tsd
120 witness_tsd_t witness_tsd; member
124 witness_tsd_tsdn(witness_tsd_t *witness_tsd) { in witness_tsd_tsdn() argument
125 return (witness_tsdn_t *)witness_tsd; in witness_tsd_tsdn()
136 return &witness_tsdn->witness_tsd; in witness_tsdn_tsd()
158 void witnesses_cleanup(witness_tsd_t *witness_tsd);
159 void witness_prefork(witness_tsd_t *witness_tsd);
160 void witness_postfork_parent(witness_tsd_t *witness_tsd);
161 void witness_postfork_child(witness_tsd_t *witness_tsd);
165 witness_owner(witness_tsd_t *witness_tsd, const witness_t *witness) { in witness_owner() argument
171 witnesses = &witness_tsd->witnesses; in witness_owner()
183 witness_tsd_t *witness_tsd; in witness_assert_owner() local
192 witness_tsd = witness_tsdn_tsd(witness_tsdn); in witness_assert_owner()
197 if (witness_owner(witness_tsd, witness)) { in witness_assert_owner()
206 witness_tsd_t *witness_tsd; in witness_assert_not_owner() local
217 witness_tsd = witness_tsdn_tsd(witness_tsdn); in witness_assert_not_owner()
222 witnesses = &witness_tsd->witnesses; in witness_assert_not_owner()
233 witness_tsd_t *witness_tsd; in witness_assert_depth_to_rank() local
245 witness_tsd = witness_tsdn_tsd(witness_tsdn); in witness_assert_depth_to_rank()
248 witnesses = &witness_tsd->witnesses; in witness_assert_depth_to_rank()
275 witness_tsd_t *witness_tsd; in witness_lock() local
286 witness_tsd = witness_tsdn_tsd(witness_tsdn); in witness_lock()
293 witnesses = &witness_tsd->witnesses; in witness_lock()
297 } else if (witness_tsd->forking && w->rank <= witness->rank) { in witness_lock()
318 witness_tsd_t *witness_tsd; in witness_unlock() local
328 witness_tsd = witness_tsdn_tsd(witness_tsdn); in witness_unlock()
338 if (witness_owner(witness_tsd, witness)) { in witness_unlock()
339 witnesses = &witness_tsd->witnesses; in witness_unlock()