OpenVPN
Data Structures | Macros | Functions
schedule.h File Reference
#include "otime.h"
#include "error.h"
Include dependency graph for schedule.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  schedule_entry
 
struct  schedule
 

Macros

#define IN_TREE(e)   ((e)->pri)
 

Functions

struct scheduleschedule_init (void)
 
void schedule_free (struct schedule *s)
 
void schedule_remove_entry (struct schedule *s, struct schedule_entry *e)
 
struct schedule_entryschedule_find_least (struct schedule_entry *e)
 
void schedule_add_modify (struct schedule *s, struct schedule_entry *e)
 
void schedule_remove_node (struct schedule *s, struct schedule_entry *e)
 
static void schedule_add_entry (struct schedule *s, struct schedule_entry *e, const struct timeval *tv, unsigned int sigma)
 
static struct schedule_entryschedule_get_earliest_wakeup (struct schedule *s, struct timeval *wakeup)
 

Macro Definition Documentation

◆ IN_TREE

#define IN_TREE (   e)    ((e)->pri)

Definition at line 77 of file schedule.h.

Referenced by schedule_add_entry(), and schedule_add_modify().

Function Documentation

◆ schedule_add_entry()

static void schedule_add_entry ( struct schedule s,
struct schedule_entry e,
const struct timeval *  tv,
unsigned int  sigma 
)
inlinestatic

◆ schedule_add_modify()

void schedule_add_modify ( struct schedule s,
struct schedule_entry e 
)

◆ schedule_find_least()

struct schedule_entry* schedule_find_least ( struct schedule_entry e)

◆ schedule_free()

void schedule_free ( struct schedule s)

Definition at line 425 of file schedule.c.

References free.

Referenced by multi_uninit().

◆ schedule_get_earliest_wakeup()

static struct schedule_entry* schedule_get_earliest_wakeup ( struct schedule s,
struct timeval *  wakeup 
)
static

◆ schedule_init()

struct schedule* schedule_init ( void  )

Definition at line 416 of file schedule.c.

References ALLOC_OBJ_CLEAR.

Referenced by multi_init(), and schedule_remove_entry().

◆ schedule_remove_entry()

void schedule_remove_entry ( struct schedule s,
struct schedule_entry e 
)

◆ schedule_remove_node()

void schedule_remove_node ( struct schedule s,
struct schedule_entry e 
)