Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/epoch.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
} __aligned(sizeof(void *)); | } __aligned(sizeof(void *)); | ||||
typedef struct epoch_tracker *epoch_tracker_t; | typedef struct epoch_tracker *epoch_tracker_t; | ||||
epoch_t epoch_alloc(int flags); | epoch_t epoch_alloc(int flags); | ||||
void epoch_free(epoch_t epoch); | void epoch_free(epoch_t epoch); | ||||
void epoch_wait(epoch_t epoch); | void epoch_wait(epoch_t epoch); | ||||
void epoch_wait_preempt(epoch_t epoch); | void epoch_wait_preempt(epoch_t epoch); | ||||
void epoch_drain_callbacks(epoch_t epoch); | |||||
void epoch_call(epoch_t epoch, epoch_context_t ctx, void (*callback) (epoch_context_t)); | void epoch_call(epoch_t epoch, epoch_context_t ctx, void (*callback) (epoch_context_t)); | ||||
int in_epoch(epoch_t epoch); | int in_epoch(epoch_t epoch); | ||||
int in_epoch_verbose(epoch_t epoch, int dump_onfail); | int in_epoch_verbose(epoch_t epoch, int dump_onfail); | ||||
DPCPU_DECLARE(int, epoch_cb_count); | DPCPU_DECLARE(int, epoch_cb_count); | ||||
DPCPU_DECLARE(struct grouptask, epoch_cb_task); | DPCPU_DECLARE(struct grouptask, epoch_cb_task); | ||||
#define EPOCH_MAGIC0 0xFADECAFEF00DD00D | #define EPOCH_MAGIC0 0xFADECAFEF00DD00D | ||||
#define EPOCH_MAGIC1 0xBADDBABEDEEDFEED | #define EPOCH_MAGIC1 0xBADDBABEDEEDFEED | ||||
Show All 10 Lines |