taglinefilesource code
SDp1322drivers/scsi/sd.cstatic int sd_detect(Scsi_Device * SDp){
SDp1323drivers/scsi/sd.cif(SDp->type != TYPE_DISK && SDp->type != TYPE_MOD) return 0;
SDp1327drivers/scsi/sd.cSDp->host->host_no, SDp->channel, SDp->id, SDp->lun); 
SDp1332drivers/scsi/sd.cstatic int sd_attach(Scsi_Device * SDp){
SDp1336drivers/scsi/sd.cif(SDp->type != TYPE_DISK && SDp->type != TYPE_MOD) return 0;
SDp1339drivers/scsi/sd.cSDp->attached--;
SDp1348drivers/scsi/sd.cSDp->scsi_request_fn = do_sd_request;
SDp1349drivers/scsi/sd.crscsi_disks[i].device = SDp;
SDp1424drivers/scsi/sd.cstatic void sd_detach(Scsi_Device * SDp)
SDp1432drivers/scsi/sd.cif(dpnt->device == SDp) {
SDp1453drivers/scsi/sd.cSDp->attached--;
SDp511drivers/scsi/sg.cstatic int sg_detect(Scsi_Device * SDp){
SDp554drivers/scsi/sg.cstatic int sg_attach(Scsi_Device * SDp)
SDp561drivers/scsi/sg.cSDp->attached--;
SDp570drivers/scsi/sg.cscsi_generics[i].device=SDp;
SDp585drivers/scsi/sg.cstatic void sg_detach(Scsi_Device * SDp)
SDp591drivers/scsi/sg.cif(gpnt->device == SDp) {
SDp593drivers/scsi/sg.cSDp->attached--;
SDp921drivers/scsi/sr.cstatic int sr_detect(Scsi_Device * SDp){
SDp923drivers/scsi/sr.cif(SDp->type != TYPE_ROM && SDp->type != TYPE_WORM) return 0;
SDp927drivers/scsi/sr.cSDp->host->host_no, SDp->channel, SDp->id, SDp->lun); 
SDp932drivers/scsi/sr.cstatic int sr_attach(Scsi_Device * SDp){
SDp936drivers/scsi/sr.cif(SDp->type != TYPE_ROM && SDp->type != TYPE_WORM) return 1;
SDp940drivers/scsi/sr.cSDp->attached--;
SDp949drivers/scsi/sr.cSDp->scsi_request_fn = do_sr_request;
SDp950drivers/scsi/sr.cscsi_CDs[i].device = SDp;
SDp1105drivers/scsi/sr.cstatic void sr_detach(Scsi_Device * SDp)
SDp1111drivers/scsi/sr.cif(cpnt->device == SDp) {
SDp1127drivers/scsi/sr.cSDp->attached--;
SDp2060drivers/scsi/st.cstatic int st_attach(Scsi_Device * SDp){
SDp2064drivers/scsi/st.cif(SDp->type != TYPE_TAPE) return 1;
SDp2068drivers/scsi/st.cSDp->attached--;
SDp2077drivers/scsi/st.cscsi_tapes[i].device = SDp;
SDp2078drivers/scsi/st.cif (SDp->scsi_level <= 2)
SDp2106drivers/scsi/st.cstatic int st_detect(Scsi_Device * SDp)
SDp2108drivers/scsi/st.cif(SDp->type != TYPE_TAPE) return 0;
SDp2112drivers/scsi/st.cSDp->host->host_no, SDp->channel, SDp->id, SDp->lun); 
SDp2223drivers/scsi/st.cstatic void st_detach(Scsi_Device * SDp)
SDp2229drivers/scsi/st.cif(tpnt->device == SDp) {
SDp2231drivers/scsi/st.cSDp->attached--;