Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 5351

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>The Linux SCSI programming HOWTO: Driver Defaults</TITLE>
 <LINK HREF="SCSI-Programming-HOWTO-14.html" REL=next>
 <LINK HREF="SCSI-Programming-HOWTO-12.html" REL=previous>
 <LINK HREF="SCSI-Programming-HOWTO.html#toc13" REL=contents>
</HEAD>
<BODY>
<A HREF="SCSI-Programming-HOWTO-14.html">Next</A>
<A HREF="SCSI-Programming-HOWTO-12.html">Previous</A>
<A HREF="SCSI-Programming-HOWTO.html#toc13">Contents</A>
<HR>
<H2><A NAME="s13">13. Driver Defaults</A></H2>

<P>
<A NAME="sec-Defaults"></A> <H2><A NAME="ss13.1">13.1 Transfer Lengths</A>
</H2>

<P>
<A NAME="sec-length"></A> 
Currently (at least up to kernel version 1.1.68) input and output
sizes have to be less than or equal than 4096 bytes unless the kernel
has been compiled with <CODE>SG_BIG_BUFF</CODE> defined, if which case it is
limited to <CODE>SG_BIG_BUFF</CODE> (e.g. 32768) bytes.  These sizes include
the generic header as well as the command block on input.
<CODE>SG_BIG_BUFF</CODE> can be safely increased upto (131072 - 512). To take
advantage of this, a new kernel has to be compiled and booted, of course.
<P>
<H2><A NAME="ss13.2">13.2 Timeout And Retry Values</A>
</H2>

<P>The default timeout value is set to one minute (<CODE>Timeout</CODE> = 6000).
It can be changed through an ioctl call (see section 
<A HREF="SCSI-Programming-HOWTO-12.html#sec-ioctl">sec-ioctl</A>
).
The default number of retries is one.
<P>
<HR>
<A HREF="SCSI-Programming-HOWTO-14.html">Next</A>
<A HREF="SCSI-Programming-HOWTO-12.html">Previous</A>
<A HREF="SCSI-Programming-HOWTO.html#toc13">Contents</A>
</BODY>
</HTML>