All of lore.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Pat LaVarre <p.lavarre@ieee.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: sg utils sg_io -i 0x24 -y "12 00:00:00 24 00"
Date: Fri, 14 Nov 2003 13:09:43 +1000	[thread overview]
Message-ID: <3FB44777.7050104@torque.net> (raw)
In-Reply-To: <1068594777.6448.7.camel@patrh9>

Pat LaVarre wrote:
> The SG_IO analogue in BSD may be:
> 
> http://www.google.com/search?q=man+SCIOCCOMMAND
> 
> The corresponding struct appears in such sources as:
> 
> http://cvsup.pt.freebsd.org/cgi-bin/cvsweb/cvsweb.cgi/src/sys/sys/scsiio.h?rev=1.9.4.2&content-type=text/x-cvsweb-markup&cvsroot=NetBSD
> 
> Same as ever, again there we see CDB for length, data for expected
> length returning actual length, sense for expected length returning
> actual length.

Pat,
I don't think the above references are correct. FreeBSD has been
using SCSI's Common Access Method (CAM) for some time. Your can
find one document at www.t10.org (drafts section under the SCSI-2
heading). More appropriate is the withdrawn CAM-3 draft standard (see
www.t10.org/ftp/t10/drafts/cam3/cam3r03.pdf ). That is where you
will find the structure sg_io_hdr was modelled on (struct ccb_scsiio3).

Another way to find SCSI pass-through mechanisms is to look
at Joerg Schilling's libscg. A simpler way may be to look at
smartmontools ( smartmontools.sourceforge.net ) and compare
os_linux.c , os_freebsd.c and os_solaris.c

Doug Gilbert



  reply	other threads:[~2003-11-14  3:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-07  0:38 sg utils sg_io -i 0x24 -y "12 00:00:00 24 00" Pat LaVarre
2003-11-07 16:24 ` Pat LaVarre
2003-11-07 16:56   ` Pat LaVarre
2003-11-07 17:09     ` Pat LaVarre
2003-11-07 17:17       ` Pat LaVarre
2003-11-07 17:51 ` Patrick Mansfield
2003-11-07 18:11   ` Pat LaVarre
2003-11-07 18:27     ` Pat LaVarre
2003-11-07 18:31       ` Pat LaVarre
2003-11-11 23:52         ` Pat LaVarre
2003-11-14  3:09           ` Douglas Gilbert [this message]
2003-11-26 16:15           ` Pat LaVarre
  -- strict thread matches above, loose matches on Subject: below --
2003-11-27 17:15 Pat LaVarre
2003-12-03  0:17 Pat LaVarre

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=3FB44777.7050104@torque.net \
    --to=dougg@torque.net \
    --cc=linux-scsi@vger.kernel.org \
    --cc=p.lavarre@ieee.org \
    /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.