FreeBSD/sys/dev/isci/scil/sci_abstract_list.c
/**
 * This method simply performs the common portion of pushing a list element
 * onto a list.
 *
 * WARNING: This is a private helper method that should not be called directly
 *          by any users.
 */
This method simply performs the common portion of pushing a list element
onto a list.

This is a private helper method that should not be called directly
by any users.
This method simply performs the common portion of pushing a list element onto a list . This is a private helper method that should not be called directly by any users .
void private_push_front(
   SCI_ABSTRACT_ELEMENT_LIST_T * privateList_p,
   SCI_ABSTRACT_ELEMENT_T * alElement_p
)
{
   if ((privateList_p)->front_p == NULL)
   {
      (privateList_p)->front_p = (privateList_p)->back_p = (alElement_p);
      (alElement_p)->next_p = (alElement_p)->previous_p = NULL;
   }
   else
   {
      (alElement_p)->next_p                = (privateList_p)->front_p;
      (alElement_p)->previous_p            = NULL;
      (privateList_p)->front_p->previous_p = (alElement_p);
      (privateList_p)->front_p             = (alElement_p);
   }
   (privateList_p)->size++;
}
void private_push_front ( SCI_ABSTRACT_ELEMENT_LIST_T * privateList_p , SCI_ABSTRACT_ELEMENT_T * alElement_p ) { if ( ( privateList_p ) -> front_p == NULL ) { ( privateList_p ) -> front_p = ( privateList_p ) -> back_p = ( alElement_p ) ; ( alElement_p ) -> next_p = ( alElement_p ) -> previous_p = NULL ; } else { ( alElement_p ) -> next_p = ( privateList_p ) -> front_p ; ( alElement_p ) -> previous_p = NULL ; ( privateList_p ) -> front_p -> previous_p = ( alElement_p ) ; ( privateList_p ) -> front_p = ( alElement_p ) ; } ( privateList_p ) -> size ++ ; }
This method simply performs the common portion of pushing a list element
 onto a list.
This method simply performs the common portion of pushing a list element onto a list .