Motr  M0
sim Struct Reference

#include <sim.h>

Collaboration diagram for sim:
Collaboration graph

Data Fields

sim_time_t ss_bolt
 
struct m0_tl ss_future
 

Detailed Description

State of a simulation.

This is the "root" data-structure used by the simulation loop (sim_run()) to drive simulation.

Definition at line 152 of file sim.h.

Field Documentation

◆ ss_bolt

sim_time_t ss_bolt

current logical time. The precise meaning of this field is up to a particular simulation model. Standard modules in net.[ch], storage.[ch], etc. assume this field to be a nanosecond-precision time.

Definition at line 158 of file sim.h.

◆ ss_future

struct m0_tl ss_future

A "logical time queue". A list of call-outs (struct sim_callout) linked through their sim_callout::sc_linkage and ordered by the sim_callout::sc_time field. This list represents of future events, still to be executed by the simulation loop.

Definition at line 165 of file sim.h.


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