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--;
SDp926drivers/scsi/sr.cstatic int sr_detect(Scsi_Device * SDp){
SDp928drivers/scsi/sr.cif(SDp->type != TYPE_ROM && SDp->type != TYPE_WORM) return 0;
SDp932drivers/scsi/sr.cSDp->host->host_no, SDp->channel, SDp->id, SDp->lun); 
SDp937drivers/scsi/sr.cstatic int sr_attach(Scsi_Device * SDp){
SDp941drivers/scsi/sr.cif(SDp->type != TYPE_ROM && SDp->type != TYPE_WORM) return 1;
SDp945drivers/scsi/sr.cSDp->attached--;
SDp954drivers/scsi/sr.cSDp->scsi_request_fn = do_sr_request;
SDp955drivers/scsi/sr.cscsi_CDs[i].device = SDp;
SDp1110drivers/scsi/sr.cstatic void sr_detach(Scsi_Device * SDp)
SDp1116drivers/scsi/sr.cif(cpnt->device == SDp) {
SDp1132drivers/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--;