All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Subs <sar.subs@gmail.com>
Cc: linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: Alternate ways to do Scatter-Gather from BOT Class driver
Date: Mon, 28 Jun 2010 14:55:27 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44L0.1006281452480.1977-100000@iolanthe.rowland.org> (raw)
In-Reply-To: <AANLkTiljLLGh8zbx1EY53-6LezDZ-utWW8FFbpFQwPIr@mail.gmail.com>

On Mon, 28 Jun 2010, Subs wrote:

> Hi All,
> 
> In my class driver I am receiving data transfer buffer as number of
> Scatter-Gather lists from SCSI layer to perform data transfers.
> 
> Is there any alternate way to get the transfer buffer from SCSI other
> than SG. I wanted to receive the complete data transfer buffer as a
> single pointer.

As far as I know, there is no alternate way to get the transfer buffer 
from the SCSI layer.

However you can get the effect you want by setting the sg_tablesize 
field in your scsi_host_template to 1.

Just out of curiosity, why are you writing a class driver for the BOT 
class?  Aren't the two existing drivers in the kernel good enough?

Alan Stern


  reply	other threads:[~2010-06-28 18:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-28 16:29 Alternate ways to do Scatter-Gather from BOT Class driver Subs
2010-06-28 18:55 ` Alan Stern [this message]
2010-06-29 15:00   ` Subs
     [not found]     ` <AANLkTilIM-9svLKrqaPfsjESn_9VnqsffBDwtiau8B_3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-29 18:06       ` Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44L0.1006281452480.1977-100000@iolanthe.rowland.org \
    --to=stern@rowland.harvard.edu \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sar.subs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.