SG_GET_SG_TABLESIZE

SG_GET_SG_TABLESIZE 0x227F.  Assumes 3rd argument points to an int and places the maximum number of scatter gather elements supported by the host adapter associated with the current SCSI device. 0 indicates that the adapter does support scatter gather.