Yes - just look at what happens when you "hot-plug" a low-level driver
into the kernel with insmod.  In a similar fashion, a low-level driver could
theoretically call scsi_register or scsi_unregister.

    The only thing tricky is that scsi_register and scsi_unregister are sort
of intended to be used by modules, and thus it is assumed that when you
unregister the usage count is 0.  The module handling technology
automatically ensures that this is the case.

    As things stand, an attempt to unregister a low-level driver when the
low-level devices are still busy is going to fail - it won't do any harm,
but it won't actually unregister anything either.

-Eric


----- Original Message -----
From: "Martin Peschke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 05, 2000 2:06 PM
Subject: hotplugging hosts


> Hi,
>
> Does the SCSI midlayer allow for adding/removing hosts after the HBA
> drivers detect routine ran? Is a HBA driver allowed to call
> scsi_register() or scsi_unregister() respectively at any time?
> Is there a HBA driver that implements adding/removing hosts on the
> fly if it detects some changes or if this action is triggered by means of
> /proc?
> I have not yet found any concerns regarding hosts.c .
>
>
> Regards
> Martin Peschke
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to [EMAIL PROTECTED]
>


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to