FreeBSD/sys/dev/isci/isci_io_request.c
/**
 * @brief This callback method gets the SMP function for an SMP request.
 *
 * @param[in]  core_request This parameter specifies the SCI core's request
 *             object associated with the SMP request.
 *
 * @return SMP function for the SMP request.
 */
@brief This callback method gets the SMP function for an SMP request.
@param[in]  core_request This parameter specifies the SCI core's request
object associated with the SMP request.

@return SMP function for the SMP request.
@brief This callback method gets the SMP function for an SMP request . @param [ in ] core_request This parameter specifies the SCI core ' s request object associated with the SMP request . @return SMP function for the SMP request .
static uint8_t
smp_io_request_cb_get_function(SCI_IO_REQUEST_HANDLE_T core_request)
{
	struct ISCI_IO_REQUEST *isci_request = (struct ISCI_IO_REQUEST *)
	    sci_object_get_association(sci_object_get_association(core_request));
	SMP_REQUEST_HEADER_T *header =
	    (SMP_REQUEST_HEADER_T *)isci_request->ccb->smpio.smp_request;
	return (header->function);
}
static uint8_t smp_io_request_cb_get_function ( SCI_IO_REQUEST_HANDLE_T core_request ) { struct ISCI_IO_REQUEST * isci_request = ( struct ISCI_IO_REQUEST * ) sci_object_get_association ( sci_object_get_association ( core_request ) ) ; SMP_REQUEST_HEADER_T * header = ( SMP_REQUEST_HEADER_T * ) isci_request -> ccb -> smpio . smp_request ; return ( header -> function ) ; }
@brief This callback method gets the SMP function for an SMP request.
@brief This callback method gets the SMP function for an SMP request .