Lines Matching defs:handle
22 scsi_periph_handle_info *handle;
26 handle = (scsi_periph_handle_info *)malloc(sizeof(*handle));
27 if (handle == NULL)
30 handle->periph_handle = periph_handle;
31 handle->device = device;
32 handle->pending_error = B_OK;
35 ADD_DL_LIST_HEAD(handle, device->handles, );
38 *res_handle = handle;
40 // SHOW_FLOW( 3, "handle=%p", handle );
47 periph_handle_close(scsi_periph_handle_info *handle)
49 // SHOW_FLOW( 3, "handle=%p", handle );
55 periph_handle_free(scsi_periph_handle_info *handle)
57 scsi_periph_device_info *device = handle->device;
59 // SHOW_FLOW( 3, "handle=%p, device=%p", handle, handle->device );
62 REMOVE_DL_LIST(handle, device->handles, );
65 free(handle);