FreeBSD/sys/dev/isci/scil/sci_abstract_list.c
/**
 * This method simply adds a LIST_ELEMENT for the supplied object to the front
 * (head) of the supplied list.
 */
This method simply adds a LIST_ELEMENT for the supplied object to the front
(head) of the supplied list.
This method simply adds a LIST_ELEMENT for the supplied object to the front ( head ) of the supplied list .
void sci_abstract_list_pushfront(
   SCI_ABSTRACT_LIST_T * list_p,
   void * obj_p
)
{
   SCI_ABSTRACT_ELEMENT_T * alElement_p =
         private_pool_allocate((list_p)->free_pool);
   alElement_p->object_p = (obj_p);
   private_push_front(&(list_p)->elements, alElement_p);
}
void sci_abstract_list_pushfront ( SCI_ABSTRACT_LIST_T * list_p , void * obj_p ) { SCI_ABSTRACT_ELEMENT_T * alElement_p = private_pool_allocate ( ( list_p ) -> free_pool ) ; alElement_p -> object_p = ( obj_p ) ; private_push_front ( & ( list_p ) -> elements , alElement_p ) ; }
This method simply adds a LIST_ELEMENT for the supplied object to the front
 (head) of the supplied list.
This method simply adds a LIST_ELEMENT for the supplied object to the front ( head ) of the supplied list .