FreeBSD/sys/dev/isci/scil/sci_abstract_list.c
/**
 * This private method will allocate a list element from the pool of free
 * list elements.
 */
This private method will allocate a list element from the pool of free
list elements.
This private method will allocate a list element from the pool of free list elements .
SCI_ABSTRACT_ELEMENT_T * private_pool_allocate(
   SCI_ABSTRACT_ELEMENT_POOL_T * free_pool
)
{
   SCI_ABSTRACT_ELEMENT_T * alElement_p;
   alElement_p = private_pop_front(&(free_pool)->free_list);
   alElement_p->next_p     = NULL;
   alElement_p->previous_p = NULL;
   alElement_p->object_p   = NULL;
   return alElement_p;
}
SCI_ABSTRACT_ELEMENT_T * private_pool_allocate ( SCI_ABSTRACT_ELEMENT_POOL_T * free_pool ) { SCI_ABSTRACT_ELEMENT_T * alElement_p ; alElement_p = private_pop_front ( & ( free_pool ) -> free_list ) ; alElement_p -> next_p = NULL ; alElement_p -> previous_p = NULL ; alElement_p -> object_p = NULL ; return alElement_p ; }
This private method will allocate a list element from the pool of free
 list elements.
This private method will allocate a list element from the pool of free list elements .