Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Domain State Machine: States

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...
 

Function Details

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.

Description

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.

Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 817 of file ocs_domain.c.

static void* __ocs_domain_common ( const char *  funcname,
ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)
static

Domain state machine: Common event handler.

Description

Common/shared events are handled here for the domain state machine.

Parameters
funcnameFunction name text.
ctxDomain state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 448 of file ocs_domain.c.

static void* __ocs_domain_common_shutdown ( const char *  funcname,
ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)
static

Domain state machine: Common shutdown.

Description

Handles common shutdown events.

Parameters
funcnameFunction name text.
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

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.

Description

The initial state for a domain. Each domain is initialized to this state at start of day (SOD).

Parameters
ctxDomain state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

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.

Description

This is a domain ready state. It waits for a domain-lost event, and initiates shutdown.

Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

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.

Description

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).

Parameters
ctxDomain state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

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.

Description

Waits for the HAL domain attach to complete. Forwards attach ok event to the fabric node state machine.

Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

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.

Description

This state is entered when receiving a domain lost while waiting for a domain alloc or a domain attach to complete.

Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

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.

Description

Waits for a HAL domain free to complete.

Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

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.

Description

All nodes are freed, and ready for a domain shutdown.

Parameters
ctxRemote node sm context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 1086 of file ocs_domain.c.