* how to implement a SCSI commands through a driver? @ 2011-06-22 11:52 RKK 2011-06-22 15:14 ` sumeet gandhare 0 siblings, 1 reply; 2+ messages in thread From: RKK @ 2011-06-22 11:52 UTC (permalink / raw) To: kernelnewbies Hi all , Im trying to implement a custom new storage protocl which uses SCSI for storage in Linux . I have been looking around for some files in the Linux SCSI subsystems to understand its three layered design. The idea is to develop a separate stack which will internally use SCSI . so to get started all i want to do is write a module(kernel space) which sends SCSI commands to target device and retrieve some information from it. any idea like to how to proceed and which are files/books that can help me in this regard. I'm reading SCSI SPC-4 and SBC-3 specifications . ^ permalink raw reply [flat|nested] 2+ messages in thread
* how to implement a SCSI commands through a driver? 2011-06-22 11:52 how to implement a SCSI commands through a driver? RKK @ 2011-06-22 15:14 ` sumeet gandhare 0 siblings, 0 replies; 2+ messages in thread From: sumeet gandhare @ 2011-06-22 15:14 UTC (permalink / raw) To: kernelnewbies On Wed, Jun 22, 2011 at 5:22 PM, RKK <kulkarni.ravi4@gmail.com> wrote: > Hi all , > Im trying to implement a custom new storage protocl which uses SCSI > for storage in Linux . I have been looking around for some files in > the Linux SCSI subsystems to understand its three layered design. The > idea is to develop a separate stack which will internally use SCSI . > so to get started all i want to do is write a module(kernel space) > which sends SCSI commands to target device and retrieve some > information from it. any idea like to how to proceed and which are > files/books that can help me in this regard. I'm reading SCSI SPC-4 > and SBC-3 specifications . > > Hi Ravi, Please have a look at files drivers/scsi/scsi_lib.c , drivers/scsi/scsi.c and drivers/scsi/scsi_scan.c, drivers/scsi/scsi_error.c scsi_scan.c contains the scsi discovery code. scsi_error.c contains the error recovery code .. The main entry point function in scsi middle layer is scsi_request_fn () http://lxr.linux.no/#linux+v2.6.39/drivers/scsi/scsi_lib.c#L1481 Also look at function scsi_alloc_sdev () in http://lxr.linux.no/#linux+v2.6.39/drivers/scsi/scsi_scan.c#L238 .. Regards, Sumeet > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110622/97eded88/attachment.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-22 15:14 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-06-22 11:52 how to implement a SCSI commands through a driver? RKK 2011-06-22 15:14 ` sumeet gandhare
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).