66#define IN_TREE(e) ((e)->pri)
static bool tv_within_sigma(const struct timeval *t1, const struct timeval *t2, unsigned int sigma)
void schedule_remove_entry(struct schedule *s, struct schedule_entry *e)
struct schedule * schedule_init(void)
void schedule_remove_node(struct schedule *s, struct schedule_entry *e)
static struct schedule_entry * schedule_get_earliest_wakeup(struct schedule *s, struct timeval *wakeup)
struct schedule_entry * schedule_find_least(struct schedule_entry *e)
int schedule_entry_compare(const struct schedule_entry *e1, const struct schedule_entry *e2)
This method compares two schedule entries and return which one is earlier,later or equal.
static void schedule_add_entry(struct schedule *s, struct schedule_entry *e, const struct timeval *tv, unsigned int sigma)
Add a struct schedule_entry to the scheduler btree or update an existing entry with a new wakeup time...
void schedule_add_modify(struct schedule *s, struct schedule_entry *e)
void schedule_free(struct schedule *s)
struct schedule_entry * lt
struct schedule_entry * parent
struct schedule_entry * gt
struct schedule_entry * earliest_wakeup
struct schedule_entry * root