taglinefilesource code
SDp1330drivers/scsi/sd.cstatic int sd_detect(Scsi_Device * SDp){
SDp1331drivers/scsi/sd.cif(SDp->type != TYPE_DISK && SDp->type != TYPE_MOD) return 0;
SDp1335drivers/scsi/sd.cSDp->host->host_no, SDp->channel, SDp->id, SDp->lun); 
SDp1340drivers/scsi/sd.cstatic int sd_attach(Scsi_Device * SDp){
SDp1344drivers/scsi/sd.cif(SDp->type != TYPE_DISK && SDp->type != TYPE_MOD) return 0;
SDp1347drivers/scsi/sd.cSDp->attached--;
SDp1356drivers/scsi/sd.cSDp->scsi_request_fn = do_sd_request;
SDp1357drivers/scsi/sd.crscsi_disks[i].device = SDp;
SDp1432drivers/scsi/sd.cstatic void sd_detach(Scsi_Device * SDp)
SDp1440drivers/scsi/sd.cif(dpnt->device == SDp) {
SDp1461drivers/scsi/sd.cSDp->attached--;
SDp522drivers/scsi/sg.cstatic int sg_detect(Scsi_Device * SDp){
SDp524drivers/scsi/sg.cswitch (SDp->type) {
SDp533drivers/scsi/sg.cSDp->host->host_no, SDp->channel, SDp->id, SDp->lun);
SDp577drivers/scsi/sg.cstatic int sg_attach(Scsi_Device * SDp)
SDp584drivers/scsi/sg.cSDp->attached--;
SDp593drivers/scsi/sg.cscsi_generics[i].device=SDp;
SDp608drivers/scsi/sg.cstatic void sg_detach(Scsi_Device * SDp)
SDp614drivers/scsi/sg.cif(gpnt->device == SDp) {
SDp616drivers/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;
SDp1112drivers/scsi/sr.cstatic void sr_detach(Scsi_Device * SDp)
SDp1118drivers/scsi/sr.cif(cpnt->device == SDp) {
SDp1134drivers/scsi/sr.cSDp->attached--;
SDp2087drivers/scsi/st.cstatic int st_attach(Scsi_Device * SDp){
SDp2091drivers/scsi/st.cif(SDp->type != TYPE_TAPE) return 1;
SDp2095drivers/scsi/st.cSDp->attached--;
SDp2104drivers/scsi/st.cscsi_tapes[i].device = SDp;
SDp2105drivers/scsi/st.cif (SDp->scsi_level <= 2)
SDp2133drivers/scsi/st.cstatic int st_detect(Scsi_Device * SDp)
SDp2135drivers/scsi/st.cif(SDp->type != TYPE_TAPE) return 0;
SDp2139drivers/scsi/st.cSDp->host->host_no, SDp->channel, SDp->id, SDp->lun); 
SDp2250drivers/scsi/st.cstatic void st_detach(Scsi_Device * SDp)
SDp2256drivers/scsi/st.cif(tpnt->device == SDp) {
SDp2258drivers/scsi/st.cSDp->attached--;