FreeBSD/sys/dev/isci/scil/sci_abstract_list.c
/**
 * This method simply removes the list element at the head of the list
 * and returns the pointer to the object that was removed.
 */
This method simply removes the list element at the head of the list
and returns the pointer to the object that was removed.
This method simply removes the list element at the head of the list and returns the pointer to the object that was removed .
void * sci_abstract_list_popfront(
   SCI_ABSTRACT_LIST_T * list_p
)
{
   SCI_ABSTRACT_ELEMENT_T * alElement_p =
                              private_pop_front(&(list_p)->elements);
   void * obj_p = NULL;
   if (alElement_p != NULL)
   {
      obj_p = alElement_p->object_p;
      private_pool_free((list_p)->free_pool, alElement_p);
   }
   return obj_p;
}
void * sci_abstract_list_popfront ( SCI_ABSTRACT_LIST_T * list_p ) { SCI_ABSTRACT_ELEMENT_T * alElement_p = private_pop_front ( & ( list_p ) -> elements ) ; void * obj_p = NULL ; if ( alElement_p != NULL ) { obj_p = alElement_p -> object_p ; private_pool_free ( ( list_p ) -> free_pool , alElement_p ) ; } return obj_p ; }
This method simply removes the list element at the head of the list
 and returns the pointer to the object that was removed.
This method simply removes the list element at the head of the list and returns the pointer to the object that was removed .