FreeBSD/sys/dev/isci/scil/sci_base_iterator.c
/**
 * @brief Initialize the interator.
 *
 * @param[in] iterator This parameter specifies the iterator to be
 *            constructed.
 * @param[in] list This parameter specifies the abstract list that will be
 *            iterated on by this iterator.  The iterator will by initialized
 *            to point to the first element in this abstract list.
 *
 * @return none
 */
@brief Initialize the interator.
@param[in] iterator This parameter specifies the iterator to be
constructed.
@param[in] list This parameter specifies the abstract list that will be
iterated on by this iterator.  The iterator will by initialized
to point to the first element in this abstract list.

@return none
@brief Initialize the interator . @param [ in ] iterator This parameter specifies the iterator to be constructed . @param [ in ] list This parameter specifies the abstract list that will be iterated on by this iterator . The iterator will by initialized to point to the first element in this abstract list . @return none
void sci_base_iterator_construct(
   SCI_ITERATOR_HANDLE_T   iterator_handle,
   SCI_ABSTRACT_LIST_T   * list
)
{
    SCI_BASE_ITERATOR_T * iterator = (SCI_BASE_ITERATOR_T *) iterator_handle;
    memset(iterator, 0, sizeof(SCI_BASE_ITERATOR_T));
    iterator->list = list;
    sci_iterator_first(iterator);
}
void sci_base_iterator_construct ( SCI_ITERATOR_HANDLE_T iterator_handle , SCI_ABSTRACT_LIST_T * list ) { SCI_BASE_ITERATOR_T * iterator = ( SCI_BASE_ITERATOR_T * ) iterator_handle ; memset ( iterator , 0 , sizeof ( SCI_BASE_ITERATOR_T ) ) ; iterator -> list = list ; sci_iterator_first ( iterator ) ; }
@brief Initialize the interator.
@brief Initialize the interator .