Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OS Required Functions

Macros

#define ocs_list_remove_head(list)   ocs_list_remove(list, ocs_list_get_head(list))
 Remove and return an item from the head of the list. More...
 

Functions

static int32_t ocs_list_empty (ocs_list_t *list)
 Test if a list is empty. More...
 
static int32_t ocs_list_is_singular (ocs_list_t *list)
 Test if a list has single entry. More...
 
static int ocs_list_valid (ocs_list_t *list)
 Test if a list is valid (ready for use) More...
 
static void ocs_list_add_head (ocs_list_t *list, void *item)
 Add an item to the head of the list. More...
 
static void ocs_list_add_tail (ocs_list_t *list, void *item)
 Add an item to the tail of the list. More...
 
static void * ocs_list_get_head (ocs_list_t *list)
 Return the first item in the list. More...
 
static void * ocs_list_get_tail (ocs_list_t *list)
 Return the first item in the list. More...
 
static void * ocs_list_tail (ocs_list_t *list)
 Return the last item in the list. More...
 
static void * ocs_list_next (ocs_list_t *list, void *item)
 Get the next item on the list. More...
 
static void * ocs_list_remove (ocs_list_t *list, void *item)
 Remove an item from the list. More...
 
static int32_t ocs_recovery_thread (ocs_thread_t *th)
 OCS FW error recovery thread. More...
 

Macro Definition Documentation

#define ocs_list_remove_head (   list)    ocs_list_remove(list, ocs_list_get_head(list))

Remove and return an item from the head of the list.

Parameters
listhead of the list
Returns
pointer to returned item, or NULL if list is empty

Definition at line 374 of file ocs_list.h.

Function Details

static void ocs_list_add_head ( ocs_list_t *  list,
void *  item 
)
inlinestatic

Add an item to the head of the list.

Parameters
listPointer to list head
itemItem to add

Definition at line 235 of file ocs_list.h.

static void ocs_list_add_tail ( ocs_list_t *  list,
void *  item 
)
inlinestatic

Add an item to the tail of the list.

Parameters
listHead of the list
itemItem to add

Definition at line 263 of file ocs_list.h.

static int32_t ocs_list_empty ( ocs_list_t *  list)
inlinestatic

Test if a list is empty.

Parameters
listPointer to list head
Returns
1 if empty, 0 otherwise

Definition at line 125 of file ocs_list.h.

static void* ocs_list_get_head ( ocs_list_t *  list)
inlinestatic

Return the first item in the list.

Parameters
listHead of the list
Returns
pointer to the first item, NULL otherwise

Definition at line 292 of file ocs_list.h.

static void* ocs_list_get_tail ( ocs_list_t *  list)
inlinestatic

Return the first item in the list.

Parameters
listhead of the list
Returns
pointer to the last item, NULL otherwise

Definition at line 308 of file ocs_list.h.

static int32_t ocs_list_is_singular ( ocs_list_t *  list)
inlinestatic

Test if a list has single entry.

Parameters
listPointer to list head
Returns
1 if list is singular, 0 otherwise

Definition at line 141 of file ocs_list.h.

static void* ocs_list_next ( ocs_list_t *  list,
void *  item 
)
inlinestatic

Get the next item on the list.

Parameters
listhead of the list
itemcurrent item
Returns
pointer to the next item, NULL otherwise

Definition at line 339 of file ocs_list.h.

static void* ocs_list_remove ( ocs_list_t *  list,
void *  item 
)
inlinestatic

Remove an item from the list.

Parameters
listHead of the list
itemItem to remove
Returns
pointer to item, or NULL if item is not found.

Definition at line 385 of file ocs_list.h.

static void* ocs_list_tail ( ocs_list_t *  list)
inlinestatic

Return the last item in the list.

Parameters
listPointer to list head
Returns
pointer to the last item, NULL otherwise

Definition at line 323 of file ocs_list.h.

static int ocs_list_valid ( ocs_list_t *  list)
inlinestatic

Test if a list is valid (ready for use)

Parameters
listPointer to list head
Returns
true if list is usable, false otherwise

Definition at line 155 of file ocs_list.h.

static int32_t ocs_recovery_thread ( ocs_thread_t *  th)
static

OCS FW error recovery thread.

Returns
0 if success; < 0 otherwise.

Definition at line 695 of file ocs_recovery.c.