scsi_free(D3X)
scsi_free - release communication channel to host adapter driver
As shipped in IRIX 6.5.22. Last changed in IRIX 6.5.5.
NAME scsi_free - release communication channel to host adapter driver SYNOPSIS #include <sys/types.h> #include <sys/scsi.h> void (*scsi_free)( vertex_hdl_t lun_vhdl, void (*callback_function)(vertex_hdl_t, char *)); DESCRIPTION The host adapter scsi_free function is used to terminate a connection between a SCSI device driver and the host adapter driver. There is no kernel object called scsi_free; rather, there is a pointer to each host adapter's scsi_free function in the sci_free field of the scsi_ctlr_info structure, which is attached to the vertex corresponding to the host adapter. lun_vhdl is the device vertex, as given to scsi_alloc to open the channel. The callback_function argument must be the same as that given to scsi_alloc. NOTES scsi_alloc is stored as a function pointer in the scsi_ctlr_info_t structure, which is associated with the scsi host adapter vertex in the hwgraph. The information structure in the scsi target vertex also has a pointer to the scsi_ctlr_info_t of the host adapter that the target is connected to. Given a lun_vhdl (vertex handle of the device) the scsi_free function can be called as follows: scsi_lun_info_t *scsi_lun_info; ... scsi_lun_info = scsi_lun_info_get(lun_vhdl); SLI_FREE(scsi_lun_info)(lun_vhdl,callback_function); SEE ALSO comments in /usr/include/sys/scsi.h, hwgraph.intro(D4X), scsi_alloc(D3X), scsi_command(D3X), scsi_free(D3X), scsi_info(D3X), scsi_ioctl(D3X), scsi_abort(D3X), SCSI chapter of the IRIX Device Driver Programmer's Guide