Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/_callout.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
TAILQ_HEAD(callout_tailq, callout); | TAILQ_HEAD(callout_tailq, callout); | ||||
struct callout { | struct callout { | ||||
union { | union { | ||||
LIST_ENTRY(callout) le; | LIST_ENTRY(callout) le; | ||||
SLIST_ENTRY(callout) sle; | SLIST_ENTRY(callout) sle; | ||||
TAILQ_ENTRY(callout) tqe; | TAILQ_ENTRY(callout) tqe; | ||||
} c_links; | } c_links; | ||||
sbintime_t c_time; /* ticks to the event */ | sbintime_t c_time; /* ticks to the event target */ | ||||
sbintime_t c_deadline; /* absolute deadline */ | |||||
sbintime_t c_precision; /* delta allowed wrt opt */ | sbintime_t c_precision; /* delta allowed wrt opt */ | ||||
void *c_arg; /* function argument */ | void *c_arg; /* function argument */ | ||||
void (*c_func)(void *); /* function to call */ | void (*c_func)(void *); /* function to call */ | ||||
struct lock_object *c_lock; /* lock to handle */ | struct lock_object *c_lock; /* lock to handle */ | ||||
short c_flags; /* User State */ | short c_flags; /* User State */ | ||||
short c_iflags; /* Internal State */ | short c_iflags; /* Internal State */ | ||||
volatile int c_cpu; /* CPU we're scheduled on */ | volatile int c_cpu; /* CPU we're scheduled on */ | ||||
}; | }; | ||||
#endif | #endif |