FreeBSD/sys/dev/isci/isci_io_request.c
/**
 * @brief This callback method asks the user to provide the length of
 *        the command descriptor block (CDB) associated with this IO request.
 *
 * @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 length of the CDB.
 */
@brief This callback method asks the user to provide the length of
the command descriptor block (CDB) associated with this IO request.

@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 length of the CDB.
@brief This callback method asks the user to provide the length of the command descriptor block ( CDB ) associated with this IO request . @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 length of the CDB .
uint32_t
scif_cb_io_request_get_cdb_length(void * scif_user_io_request)
{
	struct ISCI_IO_REQUEST *isci_request =
	    (struct ISCI_IO_REQUEST *)scif_user_io_request;
	return (isci_request->ccb->csio.cdb_len);
}
uint32_t scif_cb_io_request_get_cdb_length ( void * scif_user_io_request ) { struct ISCI_IO_REQUEST * isci_request = ( struct ISCI_IO_REQUEST * ) scif_user_io_request ; return ( isci_request -> ccb -> csio . cdb_len ) ; }
@brief This callback method asks the user to provide the length of
        the command descriptor block (CDB) associated with this IO request.
@brief This callback method asks the user to provide the length of the command descriptor block ( CDB ) associated with this IO request .