FreeBSD/sys/dev/isci/isci_io_request.c
uint32_t
scif_cb_io_request_get_lun(void * scif_user_io_request)
{
	struct ISCI_IO_REQUEST *isci_request =
	    (struct ISCI_IO_REQUEST *)scif_user_io_request;

	return (isci_request->ccb->ccb_h.target_lun);
}
/**
 * @brief This callback method asks the user to provide the Logical Unit (LUN)
 *        associated with this IO request.
 *
 * @note The contents of the value returned from this callback are defined
 *       by the protocol standard (e.g. T10 SAS specification).  Please
 *       refer to the transport command information unit description
 *       in the associated standard.
 *
 * @param[in] scif_user_io_request This parameter points to the user's
 *            IO request object.  It is a cookie that allows the user to
 *            provide the necessary information for this callback.
 *
 * @return This method returns the LUN associated with this request.
 */
@brief This callback method asks the user to provide the Logical Unit (LUN)
associated with this IO request.

@note The contents of the value returned from this callback are defined
by the protocol standard .  Please
refer to the transport command information unit description
in the associated standard.

@param[in] scif_user_io_request This parameter points to the user's
IO request object.  It is a cookie that allows the user to
provide the necessary information for this callback.

@return This method returns the LUN associated with this request.
@brief This callback method asks the user to provide the Logical Unit ( LUN ) associated with this IO request . @note The contents of the value returned from this callback are defined by the protocol standard . Please refer to the transport command information unit description in the associated standard . @param [ in ] scif_user_io_request This parameter points to the user ' s IO request object . It is a cookie that allows the user to provide the necessary information for this callback . @return This method returns the LUN associated with this request .
uint32_t
scif_cb_io_request_get_lun(void * scif_user_io_request)
{
	struct ISCI_IO_REQUEST *isci_request =
	    (struct ISCI_IO_REQUEST *)scif_user_io_request;
	return (isci_request->ccb->ccb_h.target_lun);
}
uint32_t scif_cb_io_request_get_lun ( void * scif_user_io_request ) { struct ISCI_IO_REQUEST * isci_request = ( struct ISCI_IO_REQUEST * ) scif_user_io_request ; return ( isci_request -> ccb -> ccb_h . target_lun ) ; }
@brief This callback method asks the user to provide the Logical Unit (LUN)
        associated with this IO request.
@brief This callback method asks the user to provide the Logical Unit ( LUN ) associated with this IO request .