Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/linuxkpi/common/src/linux_rcu.c
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Verify that "epoch_record" is at beginning of "struct | * Verify that "epoch_record" is at beginning of "struct | ||||
* linux_epoch_record": | * linux_epoch_record": | ||||
*/ | */ | ||||
CTASSERT(offsetof(struct linux_epoch_record, epoch_record) == 0); | CTASSERT(offsetof(struct linux_epoch_record, epoch_record) == 0); | ||||
static ck_epoch_t linux_epoch; | static ck_epoch_t linux_epoch; | ||||
static struct linux_epoch_head linux_epoch_head; | static struct linux_epoch_head linux_epoch_head; | ||||
static DPCPU_DEFINE(struct linux_epoch_record, linux_epoch_record); | DPCPU_DEFINE_STATIC(struct linux_epoch_record, linux_epoch_record); | ||||
static void linux_rcu_cleaner_func(void *, int); | static void linux_rcu_cleaner_func(void *, int); | ||||
static void | static void | ||||
linux_rcu_runtime_init(void *arg __unused) | linux_rcu_runtime_init(void *arg __unused) | ||||
{ | { | ||||
struct linux_epoch_head *head; | struct linux_epoch_head *head; | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |