Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2003 12:11:58 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Abhay Kumar Srivastava <abhay_srivastava@infosys.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: help in cam_send_ccb
Message-ID:  <20030508121158.A55526@panzer.kdm.org>
In-Reply-To: <882B7E812BE14E4BA7E86387242C8DB902590698@kecmsg11.ad.infosys.com>; from abhay_srivastava@infosys.com on Thu, May 08, 2003 at 11:59:02AM %2B0530
References:  <882B7E812BE14E4BA7E86387242C8DB902590698@kecmsg11.ad.infosys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@kdm.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030508121158.A55526>