lpfc_host_reset_handler(9)
πΈ NAME πΈ
okay so bestie, this page is lpfc_host_reset_handler(9) from the Kernel API Manual, and it's literally the scsi_host_template eh_host_reset_handler entry pt. no cap, that's the whole name vibe: lpfc_host_reset_handler β scsi_host_template eh_host_reset_handler entry pt. β¨
β¨ SYNOPSIS β¨
int lpfc_host_reset_handler (struct scsi_cmnd *cmnd );
π ARGUMENTS π
cmndβ pointer to thescsi_cmnddata structure. that's the argument, bestie, and honestly it's giving exactly what it needs to give. π
π DESCRIPTION π
okay so this routine does host reset to the adaptor port. it brings the HBA offline, performs a board restart, and then brings the board back online. the way it works: lpfc_offline calls lpfc_sli_hba_down, which will abort and local reject all outstanding SCSI commands to the host and error returned back to SCSI mid-level. π
because this will be SCSI mid-level's last resort of error handling, it will only return error if resetting of the adapter is not successful; in all other cases, will return success. periodt. π―
return code, bestie: 0x2003 - Error, 0x2002 - Success. write that down. π
π¦ SEE ALSO π¦
kernel file: ./drivers/scsi/lpfc/lpfc_scsi.c
also peep these icon functions, all listed so nobody comes for me:
lpfc_sli4_set_rsp_sgl_last(9),lpfc_rampdown_queue_depth(9),lpfc_ramp_down_queue_handler(9),lpfc_scsi_dev_block(9)β yes bestie, all real refs.lpfc_new_scsi_buf_s3(9),lpfc_sli4_vport_delete_fcp_xri_aborted(9),lpfc_sli4_io_xri_aborted(9)β these are in the group chat too.lpfc_get_scsi_buf_s3(9),lpfc_get_scsi_buf_s4(9),lpfc_get_scsi_buf(9),lpfc_release_scsi_buf_s3(9),lpfc_release_scsi_buf_s4(9),lpfc_release_scsi_buf(9)β buffer besties, slay.lpfc_fcpcmd_to_iocb(9),lpfc_scsi_prep_dma_buf_s3(9),lpfc_bg_err_inject(9),lpfc_sc_to_bg_opcodes(9),lpfc_bg_err_opcodes(9)β lowkey essential.lpfc_bg_setup_bpl(9),lpfc_bg_setup_bpl_prot(9),lpfc_bg_setup_sgl(9),lpfc_bg_setup_sgl_prot(9),lpfc_prot_group_type(9)β setup squad, periodt.lpfc_bg_scsi_adjust_dl(9),lpfc_bg_scsi_prep_dma_buf_s3(9),lpfc_scsi_prep_dma_buf_s4(9),lpfc_bg_scsi_prep_dma_buf_s4(9)β dma prep icons.lpfc_scsi_prep_dma_buf(9),lpfc_bg_scsi_prep_dma_buf(9),lpfc_scsi_prep_cmnd_buf(9),lpfc_send_scsi_error_event(9)β more prep and error-event energy.lpfc_scsi_unprep_dma_buf(9),lpfc_unblock_requests(9),lpfc_block_requests(9),lpfc_update_cmf_cmpl(9),lpfc_update_cmf_cmd(9)β blocking and updating, we love to see it.lpfc_handle_fcp_err(9),lpfc_fcp_io_cmd_wqe_cmpl(9),lpfc_scsi_cmd_iocb_cmpl(9),lpfc_scsi_prep_cmnd_buf_s3(9),lpfc_scsi_prep_cmnd_buf_s4(9)β completion and error-handling girlies.lpfc_scsi_prep_cmnd(9),lpfc_scsi_prep_task_mgmt_cmd_s3(9),lpfc_scsi_prep_task_mgmt_cmd_s4(9),lpfc_scsi_api_table_setup(9),lpfc_tskmgmt_def_cmpl(9)β task management representation.lpfc_check_pci_resettable(9),lpfc_info(9),lpfc_poll_rearm_timer(9),lpfc_poll_start_timer(9),lpfc_poll_timeout(9)β pci and poll besties.lpfc_queuecommand(9),lpfc_abort_handler(9),lpfc_check_fcp_rsp(9),lpfc_send_taskmgmt(9),lpfc_chk_tgt_mapped(9)β queue and abort crew.lpfc_reset_flush_io_context(9),lpfc_device_reset_handler(9),lpfc_target_reset_handler(9),lpfc_sdev_init(9),lpfc_sdev_configure(9),lpfc_sdev_destroy(9)β reset handlers and sdev lifecycle, iconic.lpfc_create_device_data(9),lpfc_delete_device_data(9),__lpfc_get_device_data(9),lpfc_find_next_oas_lun(9),lpfc_enable_oas_lun(9),lpfc_disable_oas_lun(9)β device data and oas lun crew, all accounted for. π«Ά
mwah π source/version: ./drivers/scsi/lpfc; date: October 2026; and the page title again: lpfc_host_reset_handler(9). that's the footer, bestie, not a drill. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms