From: Jens Axboe <axboe@suse.de>
To: peterc@gelato.unsw.edu.au
Cc: linux-kernel@vger.kernel.org
Subject: Re: A question about ll_10byte_cmd_build
Date: Thu, 18 Apr 2002 07:55:17 +0200 [thread overview]
Message-ID: <20020418055517.GD858@suse.de> (raw)
In-Reply-To: <E16y1rE-0001Zf-00@redback.cse.unsw.edu.au>
On Thu, Apr 18 2002, peterc@gelato.unsw.edu.au wrote:
>
>
> (Linux 2.5.8)
> In ll_rw_blk.c there's a function, ll_10byte_cmd_build() which is
> supposed to be used to generate `10-byte commands'.
>
> It appears to generate a SCSI READ_10 or WRITE_10 command (which
> happen to be identical in format to the ATAPI GPCMD_{READ,WRITE}_10 commands)
>
> Is this IDE specific, or is it meant to cover all block devices?
> If it's IDE specific, why is it in ll_rw_blk.c, which is meant to be
> common to all block devices?
It's not IDE specific, since when does IDE use packet commands? It's
not ATAPI specific either.
> As far as I can tell, only ide-cd.c actually uses the function in a
> stock 2.5.8 kernel --- so it could theoretically be moved to ide-cd.c.
It's meant to be an example of a generic prep_rq_fn() queue function, a
start the conversion of using struct request as the generic passer of
cdb's. Only ide-cd uses it for now as you see, that's merely because
lots of bits of the infrastructure are still missing.
--
Jens Axboe
prev parent reply other threads:[~2002-04-18 5:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-18 2:41 A question about ll_10byte_cmd_build peterc
2002-04-18 5:55 ` Jens Axboe [this message]
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=20020418055517.GD858@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=peterc@gelato.unsw.edu.au \
/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.