For scsi_hba_tran_alloc():
scsi_hba_tran_alloc() allocates a scsi_hba_tran(9S) structure
for a HBA driver. The HBA must use
this structure to register its transport vectors with the system by using scsi_hba_attach_setup(9F).
If the flag SCSI_HBA_CANSLEEP
is set in flags, scsi_hba_tran_alloc()
may sleep when allocating resources; otherwise it may not sleep, and callers
should be prepared to deal with allocation failures.
For scsi_hba_tran_free():
scsi_hba_tran_free() is used to free the scsi_hba_tran(9S)
structure allocated by scsi_hba_tran_alloc().
|