webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Typedefs | Functions
sctp_callout.h File Reference

Go to the source code of this file.

Classes

struct  sctp_callout
 

Macros

#define _NETINET_SCTP_CALLOUT_
 
#define _SCTP_NEEDS_CALLOUT_   1
 
#define SCTP_TICKS_PER_FASTTIMO   20 /* called about every 20ms */
 
#define SCTP_CALLOUT_ACTIVE   0x0002 /* callout is currently active */
 
#define SCTP_CALLOUT_PENDING   0x0004 /* callout is waiting for timeout */
 
#define SCTP_OS_TIMER_INIT   sctp_os_timer_init
 
#define SCTP_OS_TIMER_START   sctp_os_timer_start
 
#define SCTP_OS_TIMER_STOP   sctp_os_timer_stop
 
#define SCTP_OS_TIMER_STOP_DRAIN   SCTP_OS_TIMER_STOP
 
#define SCTP_OS_TIMER_PENDING(tmr)   ((tmr)->c_flags & SCTP_CALLOUT_PENDING)
 
#define SCTP_OS_TIMER_ACTIVE(tmr)   ((tmr)->c_flags & SCTP_CALLOUT_ACTIVE)
 
#define SCTP_OS_TIMER_DEACTIVATE(tmr)   ((tmr)->c_flags &= ~SCTP_CALLOUT_ACTIVE)
 

Typedefs

typedef struct sctp_callout sctp_os_timer_t
 

Functions

int sctp_get_tick_count (void)
 
 TAILQ_HEAD (calloutlist, sctp_callout)
 
void sctp_os_timer_init (sctp_os_timer_t *tmr)
 
void sctp_os_timer_start (sctp_os_timer_t *, int, void(*)(void *), void *)
 
int sctp_os_timer_stop (sctp_os_timer_t *)
 

Macro Definition Documentation

◆ _NETINET_SCTP_CALLOUT_

#define _NETINET_SCTP_CALLOUT_

◆ _SCTP_NEEDS_CALLOUT_

#define _SCTP_NEEDS_CALLOUT_   1

◆ SCTP_CALLOUT_ACTIVE

#define SCTP_CALLOUT_ACTIVE   0x0002 /* callout is currently active */

◆ SCTP_CALLOUT_PENDING

#define SCTP_CALLOUT_PENDING   0x0004 /* callout is waiting for timeout */

◆ SCTP_OS_TIMER_ACTIVE

#define SCTP_OS_TIMER_ACTIVE (   tmr)    ((tmr)->c_flags & SCTP_CALLOUT_ACTIVE)

◆ SCTP_OS_TIMER_DEACTIVATE

#define SCTP_OS_TIMER_DEACTIVATE (   tmr)    ((tmr)->c_flags &= ~SCTP_CALLOUT_ACTIVE)

◆ SCTP_OS_TIMER_INIT

#define SCTP_OS_TIMER_INIT   sctp_os_timer_init

◆ SCTP_OS_TIMER_PENDING

#define SCTP_OS_TIMER_PENDING (   tmr)    ((tmr)->c_flags & SCTP_CALLOUT_PENDING)

◆ SCTP_OS_TIMER_START

#define SCTP_OS_TIMER_START   sctp_os_timer_start

◆ SCTP_OS_TIMER_STOP

#define SCTP_OS_TIMER_STOP   sctp_os_timer_stop

◆ SCTP_OS_TIMER_STOP_DRAIN

#define SCTP_OS_TIMER_STOP_DRAIN   SCTP_OS_TIMER_STOP

◆ SCTP_TICKS_PER_FASTTIMO

#define SCTP_TICKS_PER_FASTTIMO   20 /* called about every 20ms */

Typedef Documentation

◆ sctp_os_timer_t

Function Documentation

◆ sctp_get_tick_count()

int sctp_get_tick_count ( void  )

◆ sctp_os_timer_init()

void sctp_os_timer_init ( sctp_os_timer_t tmr)

◆ sctp_os_timer_start()

void sctp_os_timer_start ( sctp_os_timer_t ,
int  ,
void(*)(void *)  ,
void  
)

◆ sctp_os_timer_stop()

int sctp_os_timer_stop ( sctp_os_timer_t )

◆ TAILQ_HEAD()

TAILQ_HEAD ( calloutlist  ,
sctp_callout   
)