FreeBSD/sys/dev/isci/scil/sci_abstract_list.c
/**
 * @brief Initialize the abstract list
 *
 * @pre The supplied free pool should be constructed prior to utilization
 *      of this abstract list.  It isn't mandatory for the free pool to be
 *      constructed before invoking this method, but suggested.
 *
 * @param[in] list This parameter specifies the abstract list to be
 *            constructed.
 * @param[in] free_pool This parameter specifies the free pool to be
 *            utilized as the repository of free elements for list usage.
 *
 * @return none
 */
@brief Initialize the abstract list
@pre The supplied free pool should be constructed prior to utilization
of this abstract list.  It isn't mandatory for the free pool to be
constructed before invoking this method, but suggested.

@param[in] list This parameter specifies the abstract list to be
constructed.
@param[in] free_pool This parameter specifies the free pool to be
utilized as the repository of free elements for list usage.

@return none
@brief Initialize the abstract list @pre The supplied free pool should be constructed prior to utilization of this abstract list . It isn ' t mandatory for the free pool to be constructed before invoking this method but suggested . @param [ in ] list This parameter specifies the abstract list to be constructed . @param [ in ] free_pool This parameter specifies the free pool to be utilized as the repository of free elements for list usage . @return none
void sci_abstract_list_construct(
   SCI_ABSTRACT_LIST_T         * list,
   SCI_ABSTRACT_ELEMENT_POOL_T * free_pool
)
{
   memset(list, 0, sizeof(SCI_ABSTRACT_LIST_T));
   list->free_pool = free_pool;
}
void sci_abstract_list_construct ( SCI_ABSTRACT_LIST_T * list , SCI_ABSTRACT_ELEMENT_POOL_T * free_pool ) { memset ( list , 0 , sizeof ( SCI_ABSTRACT_LIST_T ) ) ; list -> free_pool = free_pool ; }
@brief Initialize the abstract list
 @pre The supplied free pool should be constructed prior to utilization
      of this abstract list.
@brief Initialize the abstract list @pre The supplied free pool should be constructed prior to utilization of this abstract list .