Motr  M0
m0_sm_timeout Struct Reference

#include <sm.h>

Collaboration diagram for m0_sm_timeout:
Collaboration graph

Data Fields

struct m0_sm_timer st_timer
 
struct m0_clink st_clink
 
int st_state
 
uint64_t st_bitmask
 

Detailed Description

Structure used by m0_sm_timeout_arm() to record timeout state.

This structure is owned by the sm code, user should not access it. The user provides initialised (by m0_sm_timeout_init()) instance of m0_sm_timeout to m0_sm_timeout_arm(). After the timer expiration, the instance must be finalised (with m0_sm_timeout_fini()) and re-initialised before it can be used again.

Definition at line 653 of file sm.h.

Field Documentation

◆ st_bitmask

uint64_t st_bitmask

Transitions to states in this bit-mask won't cancel the timeout.

Definition at line 664 of file sm.h.

◆ st_clink

struct m0_clink st_clink

Clink to watch for state transitions that might cancel the timeout.

Definition at line 658 of file sm.h.

◆ st_state

int st_state

Target state.

Definition at line 660 of file sm.h.

◆ st_timer

struct m0_sm_timer st_timer

Timer used to implement delayed state transition.

Definition at line 655 of file sm.h.


The documentation for this struct was generated from the following file: