taglinefilesource code
sdpnt393drivers/scsi/hosts.cscsi_register_device(struct Scsi_Device_Template * sdpnt)
sdpnt395drivers/scsi/hosts.cif(sdpnt->next) panic("Device already registered");
sdpnt396drivers/scsi/hosts.csdpnt->next = scsi_devicelist;
sdpnt397drivers/scsi/hosts.cscsi_devicelist = sdpnt;
sdpnt363drivers/scsi/hosts.hint scsi_register_device(struct Scsi_Device_Template * sdpnt);
sdpnt3009drivers/scsi/scsi.cScsi_Device *sdpnt, * sdppnt, * sdpnt1;
sdpnt3019drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt3020drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt && sdpnt->host->hostt->usage_count
sdpnt3021drivers/scsi/scsi.c&& *sdpnt->host->hostt->usage_count) return;
sdpnt3044drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt3045drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt)
sdpnt3048drivers/scsi/scsi.cif(sdtpnt->detach) (*sdtpnt->detach)(sdpnt);
sdpnt3050drivers/scsi/scsi.cif (sdpnt->attached) {
sdpnt3051drivers/scsi/scsi.cprintk("Attached usage count = %d\n", sdpnt->attached);
sdpnt3058drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt3059drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt)
sdpnt3060drivers/scsi/scsi.cwhile (sdpnt->host->host_queue) {
sdpnt3061drivers/scsi/scsi.cSCpnt = sdpnt->host->host_queue->next;
sdpnt3062drivers/scsi/scsi.cscsi_init_free((char *) sdpnt->host->host_queue, sizeof(Scsi_Cmnd));
sdpnt3063drivers/scsi/scsi.csdpnt->host->host_queue = SCpnt;
sdpnt3065drivers/scsi/scsi.csdpnt->has_cmdblocks = 0;
sdpnt3071drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt1)
sdpnt3073drivers/scsi/scsi.csdpnt1 = sdpnt->next;
sdpnt3074drivers/scsi/scsi.cif (sdpnt->host->hostt == tpnt) {
sdpnt3076drivers/scsi/scsi.csdppnt->next = sdpnt->next;
sdpnt3078drivers/scsi/scsi.cscsi_devices = sdpnt->next;
sdpnt3079drivers/scsi/scsi.cscsi_init_free((char *) sdpnt, sizeof (Scsi_Device));
sdpnt3081drivers/scsi/scsi.csdppnt = sdpnt;