taglinefilesource code
sdpnt334drivers/scsi/hosts.cscsi_register_device(struct Scsi_Device_Template * sdpnt)
sdpnt336drivers/scsi/hosts.cif(sdpnt->next) panic("Device already registered");
sdpnt337drivers/scsi/hosts.csdpnt->next = scsi_devicelist;
sdpnt338drivers/scsi/hosts.cscsi_devicelist = sdpnt;
sdpnt367drivers/scsi/hosts.hint scsi_register_device(struct Scsi_Device_Template * sdpnt);
sdpnt2766drivers/scsi/scsi.cScsi_Device *sdpnt, * sdppnt, * sdpnt1;
sdpnt2776drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt2777drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt && sdpnt->host->hostt->usage_count
sdpnt2778drivers/scsi/scsi.c&& *sdpnt->host->hostt->usage_count) return;
sdpnt2801drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt2802drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt)
sdpnt2805drivers/scsi/scsi.cif(sdtpnt->detach) (*sdtpnt->detach)(sdpnt);
sdpnt2807drivers/scsi/scsi.cif (sdpnt->attached) {
sdpnt2808drivers/scsi/scsi.cprintk("Attached usage count = %d\n", sdpnt->attached);
sdpnt2815drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt->next)
sdpnt2816drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt)
sdpnt2817drivers/scsi/scsi.cwhile (sdpnt->host->host_queue) {
sdpnt2818drivers/scsi/scsi.cSCpnt = sdpnt->host->host_queue->next;
sdpnt2819drivers/scsi/scsi.cscsi_init_free((char *) sdpnt->host->host_queue, sizeof(Scsi_Cmnd));
sdpnt2820drivers/scsi/scsi.csdpnt->host->host_queue = SCpnt;
sdpnt2822drivers/scsi/scsi.csdpnt->has_cmdblocks = 0;
sdpnt2828drivers/scsi/scsi.cfor(sdpnt = scsi_devices; sdpnt; sdpnt = sdpnt1)
sdpnt2830drivers/scsi/scsi.csdpnt1 = sdpnt->next;
sdpnt2831drivers/scsi/scsi.cif (sdpnt->host->hostt == tpnt) {
sdpnt2833drivers/scsi/scsi.csdppnt->next = sdpnt->next;
sdpnt2835drivers/scsi/scsi.cscsi_devices = sdpnt->next;
sdpnt2836drivers/scsi/scsi.cscsi_init_free((char *) sdpnt, sizeof (Scsi_Device));
sdpnt2838drivers/scsi/scsi.csdppnt = sdpnt;