Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
fsm.h File Reference
#include <linux/timer.h>

Go to the source code of this file.

Data Structures

struct  Fsm
 
struct  FsmInst
 
struct  FsmNode
 
struct  FsmTimer
 

Typedefs

typedef void(* FSMFNPTR )(struct FsmInst *, int, void *)
 

Functions

int FsmNew (struct Fsm *fsm, struct FsmNode *fnlist, int fncount)
 
void FsmFree (struct Fsm *fsm)
 
int FsmEvent (struct FsmInst *fi, int event, void *arg)
 
void FsmChangeState (struct FsmInst *fi, int newstate)
 
void FsmInitTimer (struct FsmInst *fi, struct FsmTimer *ft)
 
int FsmAddTimer (struct FsmTimer *ft, int millisec, int event, void *arg, int where)
 
void FsmRestartTimer (struct FsmTimer *ft, int millisec, int event, void *arg, int where)
 
void FsmDelTimer (struct FsmTimer *ft, int where)
 

Typedef Documentation

typedef void(* FSMFNPTR)(struct FsmInst *, int, void *)

Definition at line 21 of file fsm.h.

Function Documentation

int FsmAddTimer ( struct FsmTimer ft,
int  millisec,
int  event,
void arg,
int  where 
)

Definition at line 121 of file fsm.c.

void FsmChangeState ( struct FsmInst fi,
int  newstate 
)

Definition at line 79 of file fsm.c.

void FsmDelTimer ( struct FsmTimer ft,
int  where 
)

Definition at line 111 of file fsm.c.

int FsmEvent ( struct FsmInst fi,
int  event,
void arg 
)

Definition at line 52 of file fsm.c.

void FsmFree ( struct Fsm fsm)

Definition at line 46 of file fsm.c.

void FsmInitTimer ( struct FsmInst fi,
struct FsmTimer ft 
)

Definition at line 98 of file fsm.c.

int FsmNew ( struct Fsm fsm,
struct FsmNode fnlist,
int  fncount 
)

Definition at line 25 of file fsm.c.

void FsmRestartTimer ( struct FsmTimer ft,
int  millisec,
int  event,
void arg,
int  where 
)

Definition at line 145 of file fsm.c.