lpfc_scsi_prep_cmnd_buf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_scsi_prep_cmnd_buf(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual, and it's all about lpfc_scsi_prep_cmnd_buf β€” literally the little wrapper that handles IOCB/WQE mapping for an scsi buffer. iykyk. πŸ¦‹


✨ NAME ✨

lpfc_scsi_prep_cmnd_buf β€” a wrapper function for the IOCB/WQE mapping of an scsi buffer. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

int lpfc_scsi_prep_cmnd_buf (struct lpfc_vport *vport , struct
lpfc_io_buf *lpfc_cmd , uint8_t tmo );

πŸŽ€ ARGUMENTS πŸŽ€

  • vport β€” a pointer to the vport object. just a lil pointer, no drama 🫢
  • lpfc_cmd β€” the scsi buffer that's about to get mapped. she's the main character here πŸ‘‘
  • tmo β€” the timeout value for the IO, a uint8_t. the clock is ticking bestie ⏰

πŸ’– DESCRIPTION πŸ’–

so this routine literally initializes the IOCB/WQE data structure from the scsi command. that's the whole job, and she does it. ✨

Return codes, write these down:

  • 1 β€” Error 😭
  • 0 β€” Success πŸŽ‰
ngl, 1 being the error and 0 being success is giving classic C energy, so just keep your eyes on the prize fr fr πŸ’€

🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/scsi/lpfc/lpfc_scsi.c β€” go look, she's iconic ⭐

and now the full friend group, no cap, every single one of them:

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_get_scsi_buf(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_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 squad and yes i listed every single one, you're welcome πŸ«ΆπŸ’œ


that's the page bestie! 🧚 sign-off time: this one lives over in ./drivers/scsi/lpfc and the date on it is October 2026 β€” so mark your calendar, she's from the future periodt πŸŒŸπŸ’…

πŸ“¦ where this page comes from