FreeBSD/sys/dev/isci/scil/scif_sas_controller.c
/**
 * @brief This routine is to free the memory for a completed internal request.
 *
 * @param[in] scif_controller handle to frame controller
 * @param[in] fw_internal_io The internal IO to be freed.
 *
 * @return none
 */
@brief This routine is to free the memory for a completed internal request.
@param[in] scif_controller handle to frame controller
@param[in] fw_internal_io The internal IO to be freed.

@return none
@brief This routine is to free the memory for a completed internal request . @param [ in ] scif_controller handle to frame controller @param [ in ] fw_internal_io The internal IO to be freed . @return none
void scif_sas_controller_free_internal_request(
   SCIF_SAS_CONTROLLER_T * fw_controller,
   void                  * fw_internal_request_buffer
)
{
   SCIF_LOG_TRACE((
      sci_base_object_get_logger(fw_controller),
      SCIF_LOG_OBJECT_CONTROLLER | SCIF_LOG_OBJECT_IO_REQUEST,
      "scif_controller_free_internal_request(0x%x, 0x%x) enter\n",
      fw_controller, fw_internal_request_buffer
   ));
   if( !sci_pool_full(fw_controller->internal_request_memory_pool) )
   {
      sci_pool_put(
         fw_controller->internal_request_memory_pool,
         (POINTER_UINT) fw_internal_request_buffer
      );
   }
}
void scif_sas_controller_free_internal_request ( SCIF_SAS_CONTROLLER_T * fw_controller , void * fw_internal_request_buffer ) { SCIF_LOG_TRACE ( ( sci_base_object_get_logger ( fw_controller ) , SCIF_LOG_OBJECT_CONTROLLER | SCIF_LOG_OBJECT_IO_REQUEST , " \n " , fw_controller , fw_internal_request_buffer ) ) ; if ( ! sci_pool_full ( fw_controller -> internal_request_memory_pool ) ) { sci_pool_put ( fw_controller -> internal_request_memory_pool , ( POINTER_UINT ) fw_internal_request_buffer ) ; } }
@brief This routine is to free the memory for a completed internal request.
@brief This routine is to free the memory for a completed internal request .
//return the memory to to pool.