taglinefilesource code
SDp1148drivers/scsi/sd.cstatic int sd_detect(Scsi_Device * SDp){
SDp1149drivers/scsi/sd.cif(SDp->type != TYPE_DISK && SDp->type != TYPE_MOD) return 0;
SDp1153drivers/scsi/sd.cSDp->host->host_no , SDp->id, SDp->lun); 
SDp1159drivers/scsi/sd.cstatic int sd_attach(Scsi_Device * SDp){
SDp1163drivers/scsi/sd.cif(SDp->type != TYPE_DISK && SDp->type != TYPE_MOD) return 0;
SDp1166drivers/scsi/sd.cSDp->attached--;
SDp1175drivers/scsi/sd.cSDp->scsi_request_fn = do_sd_request;
SDp1176drivers/scsi/sd.crscsi_disks[i].device = SDp;
SDp1245drivers/scsi/sd.cstatic void sd_detach(Scsi_Device * SDp)
SDp1254drivers/scsi/sd.cif(dpnt->device == SDp) {
SDp1273drivers/scsi/sd.cSDp->attached--;
SDp338drivers/scsi/sg.cstatic int sg_detect(Scsi_Device * SDp){
SDp380drivers/scsi/sg.cstatic int sg_attach(Scsi_Device * SDp)
SDp387drivers/scsi/sg.cSDp->attached--;
SDp396drivers/scsi/sg.cscsi_generics[i].device=SDp;
SDp411drivers/scsi/sg.cstatic void sg_detach(Scsi_Device * SDp)
SDp417drivers/scsi/sg.cif(gpnt->device == SDp) {
SDp419drivers/scsi/sg.cSDp->attached--;
SDp855drivers/scsi/sr.cstatic int sr_detect(Scsi_Device * SDp){
SDp857drivers/scsi/sr.cif(SDp->type != TYPE_ROM && SDp->type != TYPE_WORM) return 0;
SDp861drivers/scsi/sr.cSDp->host->host_no , SDp->id, SDp->lun); 
SDp866drivers/scsi/sr.cstatic int sr_attach(Scsi_Device * SDp){
SDp870drivers/scsi/sr.cif(SDp->type != TYPE_ROM && SDp->type != TYPE_WORM) return 1;
SDp874drivers/scsi/sr.cSDp->attached--;
SDp883drivers/scsi/sr.cSDp->scsi_request_fn = do_sr_request;
SDp884drivers/scsi/sr.cscsi_CDs[i].device = SDp;
SDp1042drivers/scsi/sr.cstatic void sr_detach(Scsi_Device * SDp)
SDp1050drivers/scsi/sr.cif(cpnt->device == SDp) {
SDp1064drivers/scsi/sr.cSDp->attached--;
SDp1938drivers/scsi/st.cstatic int st_attach(Scsi_Device * SDp){
SDp1942drivers/scsi/st.cif(SDp->type != TYPE_TAPE) return 1;
SDp1946drivers/scsi/st.cSDp->attached--;
SDp1955drivers/scsi/st.cscsi_tapes[i].device = SDp;
SDp1956drivers/scsi/st.cif (SDp->scsi_level <= 2)
SDp1965drivers/scsi/st.cstatic int st_detect(Scsi_Device * SDp)
SDp1967drivers/scsi/st.cif(SDp->type != TYPE_TAPE) return 0;
SDp1971drivers/scsi/st.cSDp->host->host_no , SDp->id, SDp->lun); 
SDp2052drivers/scsi/st.cstatic void st_detach(Scsi_Device * SDp)
SDp2058drivers/scsi/st.cif(tpnt->device == SDp) {
SDp2060drivers/scsi/st.cSDp->attached--;