lpfc_nvmet_handle_lsreq(9)
π lpfc_nvmet_handle_lsreq β like, the NVME LS request handler bestie
Okay so this is a page from the Kernel API Manual (section 9, kernel funcs, iykyk) and it's all about one lil function: lpfc_nvmet_handle_lsreq. Let's get into it β¨
β¨ NAME β¨
lpfc_nvmet_handle_lsreq β Process an NVME LS request π
π¦ SYNOPSIS π¦
int lpfc_nvmet_handle_lsreq (struct lpfc_hba *phba , struct
lpfc_async_xchg_ctx *axchg );
πΈ ARGUMENTS πΈ
phbaβ pointer to lpfc hba data structure. ur classic hba pointer, no notes πaxchgβ pointer to exchange context for the NVME LS request π
π DESCRIPTION π
So this routine is literally the moment an NVME LS request arrives asynchronously and needs to be dealt with. The routine does any remaining validation, and then the LS gets forwarded to the nvmet-fc transport via nvmet_fc_rcv_ls_req. Slay.
The calling sequence should be, fr fr:
nvmet_fc_rcv_ls_req -> (processing) ->
lpfc_nvmet_xmt_ls_rsp/cmp -> req->done.
And lpfc_nvme_xmt_ls_rsp_cmp should free the allocated axchg. Not me reminding you to free ur stuff π
Returns 0 if the LS was handled and delivered to the transport. Returns 1 if the LS failed to be handled and should be dropped. Two outcomes, both iconic π
β SEE ALSO β
Kernel file ./drivers/scsi/lpfc/lpfc_nvmet.c β the main character file itself π«Ά
__lpfc_nvme_xmt_ls_rsp_cmp(9)lpfc_nvmet_xmt_ls_rsp_cmp(9)lpfc_nvmet_ctxbuf_post(9)lpfc_nvmet_xmt_fcp_op_cmp(9)__lpfc_nvme_xmt_ls_rsp(9)lpfc_nvmet_xmt_ls_rsp(9)lpfc_nvmet_ls_req_cmp(9)lpfc_nvmet_ls_req(9)lpfc_nvmet_ls_abort(9)lpfc_sli4_nvmet_xri_aborted(9)lpfc_nvmet_unsol_fcp_buffer(9)lpfc_nvmet_unsol_fcp_event(9)lpfc_nvmet_prep_ls_wqe(9)lpfc_nvmet_sol_fcp_abort_cmp(9)lpfc_nvmet_unsol_fcp_abort_cmp(9)lpfc_nvmet_xmt_ls_abort_cmp(9)lpfc_nvme_unsol_ls_issue_abort(9)lpfc_nvmet_invalidate_host(9)
That's the whole vibe, bestie β go read the source, it's giving main character energy π§π
Signed off from ./drivers/scsi/lpfc, running Kernel API Manual flavor, dated October 2026 β catch u in the group chat ππ
π¦ 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