• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/ck/include/

Lines Matching defs:record

116 ck_epoch_record_ct(const ck_epoch_record_t *record)
119 return ck_pr_load_ptr(&record->ct);
126 ck_epoch_begin(ck_epoch_record_t *record, ck_epoch_section_t *section)
128 struct ck_epoch *epoch = record->global;
134 if (record->active == 0) {
143 ck_pr_fas_uint(&record->active, 1);
146 ck_pr_store_uint(&record->active, 1);
158 ck_pr_store_uint(&record->epoch, g_epoch);
160 ck_pr_store_uint(&record->active, record->active + 1);
164 _ck_epoch_addref(record, section);
174 ck_epoch_end(ck_epoch_record_t *record, ck_epoch_section_t *section)
178 ck_pr_store_uint(&record->active, record->active - 1);
181 return _ck_epoch_delref(record, section);
183 return record->active == 0;
196 ck_epoch_call(ck_epoch_record_t *record,
200 struct ck_epoch *epoch = record->global;
204 record->n_pending++;
206 ck_stack_push_spnc(&record->pending[offset], &entry->stack_entry);
214 ck_epoch_call_strict(ck_epoch_record_t *record,
218 struct ck_epoch *epoch = record->global;
222 ck_pr_inc_uint(&record->n_pending);
226 ck_stack_push_upmc(&record->pending[offset], &entry->stack_entry);
251 * Attempts to recycle an unused epoch record. If one is successfully
252 * allocated, the record context pointer is also updated.
257 * Registers an epoch record. An optional context pointer may be passed that
263 * Marks a record as available for re-use by a subsequent recycle operation.
264 * Note that the record cannot be physically destroyed.
269 bool ck_epoch_poll_deferred(struct ck_epoch_record *record, ck_stack_t *deferred);
276 * Reclaim entries associated with a record. This is safe to call only on
277 * the caller's record or records that are using call_strict.