logo       

Re: SCSI Command scatter-gather number: msg#00214

Subject: Re: SCSI Command scatter-gather number
Hi Haofung,

On Tue, Jul 30, 2002 at 02:07:49PM -0700, Haofeng Kou wrote:
> For the "struct scsi_cmnd", there is a member :
>       unsigned short use_sg;
> Which gives the Number of pieces of the scatter-gather.
> 
> How to limit its value, how to set the max value for the "use_sg"?

For a low-level driver you mean?
Use the sg_tablesize field.

Regards,
-- 
Kurt Garloff                   <kurt@xxxxxxxxxx>         [Eindhoven, NL]
Physics: Plasma simulations    <K.Garloff@xxxxxx>     [TU Eindhoven, NL]
Linux: SCSI, Security          <garloff@xxxxxxx>    [SuSE Nuernberg, DE]
 (See mail header or public key servers for PGP2 and GPG public keys.)

Attachment: pgptd3mAWWcWM.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>