Abstract the memory allocation, scsibus_softc data copying and
authorkrw <krw@openbsd.org>
Wed, 2 Mar 2022 17:47:11 +0000 (17:47 +0000)
committerkrw <krw@openbsd.org>
Wed, 2 Mar 2022 17:47:11 +0000 (17:47 +0000)
commitf84da9bff3c882eb7034ff2560323d6d1c135732
tree0124005724e3992dc21d7a86fe9ae9048a28793a
parent1914e2079d8471fbf2cca3b02895415f67b45a63
Abstract the memory allocation, scsibus_softc data copying and
flag setting bits of creating a scsi_link into scsi_alloc_link().

Shrinks the bloated scsi_probe_link() a bit, makes it possible to
eventually create a useable scsi_link even when scsi_probe_link()
can't attach a device.

Developed from part of a diff submitted by Scott Nicholas via
tech@.
sys/scsi/scsiconf.c