lpfc_get_scsi_buf(9)
π lpfc_get_scsi_buf(9) β like, the Kernel API Manual page you actually wanna read β¨
okay bestie, settle in, we're in the Kernel API Manual and today's main character is lpfc_get_scsi_buf(9) π
β¨ NAME β¨
lpfc_get_scsi_buf β grab a scsi buffer from the lpfc_scsi_buf_list of the HBA π¦
β¨ SYNOPSIS β¨
struct lpfc_io_buf* lpfc_get_scsi_buf (struct lpfc_hba *phba , struct
lpfc_nodelist *ndlp , struct scsi_cmnd *cmnd );
like yes, that's the whole vibe π
β¨ ARGUMENTS β¨
phbaβ the HBA we're doing this call for, that's it, that's the whole thing π«Άndlpβ a pointer to a node-list data structure πcmndβ a pointer to ascsi_cmnddata structure πΈ
β¨ DESCRIPTION β¨
so what does this actually do? okay so β this routine takes a scsi buffer off the head of the phba lpfc_scsi_buf_list list and hands it right back to whoever called. literally snatching it from the front of the line, no cap π
Return codes, and this part matters, don't skip it:
NULLβ error π- pointer to
lpfc_scsi_bufβ success π₯
ngl bestie, keep an eye on that NULL β it's giving "something went wrong" energy and you don't wanna ignore it π
β¨ SEE ALSO β¨
kernel file ./drivers/scsi/lpfc/lpfc_scsi.c β that's where the sauce lives β
and now the whole group chat of related functions, all of them, no one left out π
lpfc_sli4_set_rsp_sgl_last(9)lpfc_rampdown_queue_depth(9)lpfc_ramp_down_queue_handler(9)lpfc_scsi_dev_block(9)lpfc_new_scsi_buf_s3(9)lpfc_sli4_vport_delete_fcp_xri_aborted(9)lpfc_sli4_io_xri_aborted(9)lpfc_get_scsi_buf_s3(9)lpfc_get_scsi_buf_s4(9)lpfc_release_scsi_buf_s3(9)lpfc_release_scsi_buf_s4(9)lpfc_release_scsi_buf(9)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)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)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)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)lpfc_scsi_unprep_dma_buf(9)lpfc_unblock_requests(9)lpfc_block_requests(9)lpfc_update_cmf_cmpl(9)lpfc_update_cmf_cmd(9)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)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)lpfc_check_pci_resettable(9)lpfc_info(9)lpfc_poll_rearm_timer(9)lpfc_poll_start_timer(9)lpfc_poll_timeout(9)lpfc_queuecommand(9)lpfc_abort_handler(9)lpfc_check_fcp_rsp(9)lpfc_send_taskmgmt(9)lpfc_chk_tgt_mapped(9)lpfc_reset_flush_io_context(9)lpfc_device_reset_handler(9)lpfc_target_reset_handler(9)lpfc_host_reset_handler(9)lpfc_sdev_init(9)lpfc_sdev_configure(9)lpfc_sdev_destroy(9)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)
like, that's the whole page bestie, you ate that π β¨
sign-off szn π β this one came out of ./drivers/scsi/lpfc, dated October 2026, and it's lpfc_get_scsi_buf(9) forever and ever, periodt ππ¦
π¦ 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