void scif_sas_internal_task_request_destruct( SCIF_SAS_TASK_REQUEST_T * fw_internal_task ) { SCIF_SAS_CONTROLLER_T * fw_controller = fw_internal_task->parent.device->domain->controller; scif_sas_controller_free_internal_request(fw_controller, fw_internal_task); }
/** * @brief This methods takes care of destruction of an internal request about its * "internal" related feature, including the memory recycling and timer. * * @param[in] fw_controller The framework controller object. * @param[in] fw_internal_io The internal io to be completed. * * @return none */ void scif_sas_internal_io_request_destruct( SCIF_SAS_CONTROLLER_T * fw_controller, SCIF_SAS_INTERNAL_IO_REQUEST_T * fw_internal_io ) { if (fw_internal_io->internal_io_timer != NULL) { scif_cb_timer_destroy(fw_controller, fw_internal_io->internal_io_timer); fw_internal_io->internal_io_timer = NULL; } scif_sas_controller_free_internal_request(fw_controller, fw_internal_io); }