MCPcopy Create free account
hub / github.com/F-Stack/f-stack / epoch_enter

Function epoch_enter

freebsd/kern/subr_epoch.c:468–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468void
469epoch_enter(epoch_t epoch)
470{
471 epoch_record_t er;
472
473 MPASS(cold || epoch != NULL);
474 INIT_CHECK(epoch);
475 critical_enter();
476 er = epoch_currecord(epoch);
477#ifdef INVARIANTS
478 if (er->er_record.active == 0) {
479 MPASS(er->er_td == NULL);
480 er->er_td = curthread;
481 } else {
482 /* We've recursed, just make sure our accounting isn't wrong. */
483 MPASS(er->er_td == curthread);
484 }
485#endif
486 ck_epoch_begin(&er->er_record, NULL);
487}
488
489void
490_epoch_exit_preempt(epoch_t epoch, epoch_tracker_t et EPOCH_FILE_LINE)

Callers 1

epoch_call_taskFunction · 0.85

Calls 3

epoch_currecordFunction · 0.85
ck_epoch_beginFunction · 0.85
critical_enterFunction · 0.50

Tested by

no test coverage detected