Functions | |
| static void * | __ocs_domain_common (const char *funcname, ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Common event handler. More... | |
| static void * | __ocs_domain_common_shutdown (const char *funcname, ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Common shutdown. More... | |
| void * | __ocs_domain_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Initial state. More... | |
| void * | __ocs_domain_wait_alloc (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Wait for the domain allocation to complete. More... | |
| void * | __ocs_domain_allocated (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Wait for the domain attach request. More... | |
| void * | __ocs_domain_wait_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Wait for the HAL domain attach to complete. More... | |
| void * | __ocs_domain_ready (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Ready state. More... | |
| void * | __ocs_domain_wait_sports_free (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Wait for nodes to free prior to the domain shutdown. More... | |
| void * | __ocs_domain_wait_shutdown (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Complete the domain shutdown. More... | |
| void * | __ocs_domain_wait_domain_lost (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| Domain state machine: Wait for the domain alloc/attach completion after receiving a domain lost. More... | |
| void* __ocs_domain_allocated | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | arg | ||
| ) |
Domain state machine: Wait for the domain attach request.
In this state, the domain has been allocated and is waiting for a domain attach request. The attach request comes from a node instance completing the fabric login, or from a point-to-point negotiation and login.
| ctx | Remote node state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 817 of file ocs_domain.c.
|
static |
Domain state machine: Common event handler.
Common/shared events are handled here for the domain state machine.
| funcname | Function name text. |
| ctx | Domain state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 448 of file ocs_domain.c.
|
static |
Domain state machine: Common shutdown.
Handles common shutdown events.
| funcname | Function name text. |
| ctx | Remote node state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 483 of file ocs_domain.c.
| void* __ocs_domain_init | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | arg | ||
| ) |
Domain state machine: Initial state.
The initial state for a domain. Each domain is initialized to this state at start of day (SOD).
| ctx | Domain state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 538 of file ocs_domain.c.
| void* __ocs_domain_ready | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | arg | ||
| ) |
Domain state machine: Ready state.
This is a domain ready state. It waits for a domain-lost event, and initiates shutdown.
| ctx | Remote node state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 1002 of file ocs_domain.c.
| void* __ocs_domain_wait_alloc | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | arg | ||
| ) |
Domain state machine: Wait for the domain allocation to complete.
Waits for the domain state to be allocated. After the HAL domain allocation process has been initiated, this state waits for that process to complete (i.e. a domain-alloc-ok event).
| ctx | Domain state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 675 of file ocs_domain.c.
| void* __ocs_domain_wait_attach | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | arg | ||
| ) |
Domain state machine: Wait for the HAL domain attach to complete.
Waits for the HAL domain attach to complete. Forwards attach ok event to the fabric node state machine.
| ctx | Remote node state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 909 of file ocs_domain.c.
| void* __ocs_domain_wait_domain_lost | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | arg | ||
| ) |
Domain state machine: Wait for the domain alloc/attach completion after receiving a domain lost.
This state is entered when receiving a domain lost while waiting for a domain alloc or a domain attach to complete.
| ctx | Remote node state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 1198 of file ocs_domain.c.
| void* __ocs_domain_wait_shutdown | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | arg | ||
| ) |
Domain state machine: Complete the domain shutdown.
Waits for a HAL domain free to complete.
| ctx | Remote node state machine context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 1129 of file ocs_domain.c.
| void* __ocs_domain_wait_sports_free | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | arg | ||
| ) |
Domain state machine: Wait for nodes to free prior to the domain shutdown.
All nodes are freed, and ready for a domain shutdown.
| ctx | Remote node sm context. |
| evt | Event to process. |
| arg | Per event optional argument. |
Definition at line 1086 of file ocs_domain.c.