For the initialization sequence, you could refer
to drivers/scsi/scsi_scan.c. You could get some more documentation at
chapter 5 in the pdf below.

http://devresources.linux-foundation.org/dev/opendrivers/documentation/scsi_design_analysis_2_6_v2.pdf

-Raghu
On Tue, Mar 31, 2009 at 6:26 AM, loody <[email protected]> wrote:

> Dear all:
> Would you please tell me where I can find the SCSI initial sequence?
> Since I read the spec, I want to know the sequence of using them.
> For example, if I plug in a usb flash, what are the correct and proper
> sequences I should use before I call READ_10.
> appreciate your help,
> miloody
>
> 2009/3/24 loody <[email protected]>:
> > Hi all:
> > thanks for your kind help,
> > Sincerely Yours,
> > miloody
> > 2009/3/24 Mark Brown <[email protected]>:
>  >> Hi,
> >>
> >>  If you want to see the SCSI mid-layer  implementation check out:
> >> drivers/scsi/scsi.c
> >>
> >> If you are curious about the SCSI commands sent to a SCSI disk you can
> look
> >> at:
> >> drivers/scsi/sd.c
> >>
> >> SCSI tape:
> >> drivers/scsi/st.c
> >>
> >> SCSI optical media (CDs/DVDs)
> >> drivers/scsi/sr.c
> >>
> >> SCSI enclosures
> >> drivers/scsi/ses.c
> >>
> >> For the embedded email from Vichy:
> >> 6,10,12 and even 16 is the (CDB) command length.
> >>
> >> In the case of Write CDB size allows you to adjust the LBA, Transfer
> Length,
> >> etc. Some older targets do not handle larger CDB sizes.
> >>
> >> http://en.wikipedia.org/wiki/SCSI_CDB
> >> http://en.wikipedia.org/wiki/SCSI_Write_Commands
> >>
> >> Enjoy!
> >>
> >> -- Mark
> >>
> >> On Mar 24, 2009, at 4:21 AM, Sandeep K Sinha wrote:
> >>
> >>> On Tue, Mar 24, 2009 at 1:27 PM, loody <[email protected]> wrote:
> >>>>
> >>>> Hi:
> >>>>
> >>>> 2008/3/15 vichy <[email protected]>:
> >>>>>
> >>>>> Dear all:
> >>>>> I found there is number at the end of SCSI commands like below:
> >>>>> Command     document
> >>>>> WRITE(6)     SBC
> >>>>> WRITE(10)    SBC
> >>>>> WRITE(12)    SBC
> >>>>> Could someone tell me what the number, (6), (10) and (12) mean?
> >>>>> Appreciate your help,
> >>>>> vichy
> >>>>>
> >>>>>
> >>>>> --
> >>>>> To unsubscribe from this list: send an email with
> >>>>> "unsubscribe kernelnewbies" to [email protected]
> >>>>> Please read the FAQ at http://kernelnewbies.org/FAQ
> >>>>
> >>>> Does anyone where the implementation about SCSI commands in linux
> driver?
> >>>> I want to compare the source with the spec.
> >>>
> >>> Look into scsi_ioctl( ).
> >>> Its located in linux/drivers/scsi/scsi_ioctl.c
> >>>
> >>>
> >>> HTH,
> >>>
> >>>> Sincerely Yours,
> >>>> miloody
> >>>>
> >>>> --
> >>>> To unsubscribe from this list: send an email with
> >>>> "unsubscribe kernelnewbies" to [email protected]
> >>>> Please read the FAQ at http://kernelnewbies.org/FAQ
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Regards,
> >>> Sandeep.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> “To learn is to change. Education is a process that changes the
> learner.”
> >>>
> >>> --
> >>> To unsubscribe from this list: send an email with
> >>> "unsubscribe kernelnewbies" to [email protected]
> >>> Please read the FAQ at http://kernelnewbies.org/FAQ
> >>>
> >>
> >>
> >
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to [email protected]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

Reply via email to