help in cam_send_ccb

Kenneth D. Merry ken at kdm.org
Thu May 8 11:12:07 PDT 2003


On Thu, May 08, 2003 at 11:59:02 +0530, Abhay Kumar Srivastava wrote:
> 
> 	Hi,
> 
> 	I want to know the unit of  timeout that we fill in ccb
> structure before we call cam_send_ccb.
> 
> 	In the following code 
> 	cam_fill_csio(&testData->ccb.csio,
> 						/* retries */ 1,
> 						/* cbfcnp */ NULL,
> 						/* flags */ CAM_DIR_OUT,
> 						/* tag_action */
> MSG_SIMPLE_Q_TAG,
> 						/* data_ptr */ (u_int8_t
> *)&rData,
> 						/* dxfer_len */ sizeof(
> struct scsi_reassign_blocks_data ),
> 						/* sense_len */
> SSD_FULL_SIZE,
> 						/* cdb_len */
> sizeof(struct scsi_reassign_blocks),
> 						/* timeout */ 10000);
> 
> 	cam_send_ccb(testData->device, &testData->ccb)
> 
> 	I would like to know what this 10000 is .
> 	is it 10000 milisec or 10000 micro sec.

It's in milliseconds.

So 10000 means you have a 10 second timeout.

Ken
-- 
Kenneth Merry
ken at kdm.org


More information about the freebsd-hackers mailing list