megasas_set_pd_lba(9)
πΈ megasas_set_pd_lba β NAME π
okay so bestie, welcome to the megasas_set_pd_lba page of the Kernel API Manual β this is the function that Sets PD LBA. that's it, that's the whole name, and honestly? iconic brevity. β¨
β¨ SYNOPSIS β¨
void megasas_set_pd_lba (struct MPI2_RAID_SCSI_IO_REQUEST *io_request ,
u8 cdb_len , struct IO_REQUEST_INFO *io_info , struct scsi_cmnd *scp ,
struct MR_DRV_RAID_MAP_ALL *local_map_ptr , u32 ref_tag );
like, six whole parameters, no cap. she's a void so she doesn't even return anything back to you β she just does the thing and leaves. main character energy honestly. π
π«Ά ARGUMENTS π«Ά
okay so here's the full roster, no skipping, we love a complete cast list:
io_requestβ the IO request π (astruct MPI2_RAID_SCSI_IO_REQUEST *, if you were wondering)cdb_lenβ the cdb length, a lilu8π§io_infoβ IO information, all the deets basically πscpβ the SCSI command, astruct scsi_cmnd *βlocal_map_ptrβ the Raid map πΊοΈ, astruct MR_DRV_RAID_MAP_ALL *β yes the type is literallyMR_DRV_RAID_MAP_ALL, she's loud and proudref_tagβ the Primary reference tag π·οΈ (au32)
π DESCRIPTION π
so what does she actually do? she's Used to set the PD LBA in CDB for FP IOs. that's the whole vibe. PD LBA goes into the CDB, specifically for FP IOs. slay. π₯
π¦ SEE ALSO π¦
first up, the source file herself (literally in the kernel at this path, go look):
./drivers/scsi/megaraid/megaraid_sas_fusion.c
and now the full friend group β every single one, because we do not leave anyone out of the group chat π:
megasas_adp_reset_wait_for_ready(9)megasas_check_same_4gb_region(9)megasas_enable_intr_fusion(9)megasas_disable_intr_fusion(9)megasas_get_cmd_fusion(9)megasas_return_cmd_fusion(9)megasas_write_64bit_req_desc(9)megasas_fire_cmd_fusion(9)megasas_fusion_update_can_queue(9)megasas_free_cmds_fusion(9)megasas_create_sg_sense_fusion(9)megasas_alloc_cmds_fusion(9)wait_and_poll(9)megasas_ioc_init_fusion(9)megasas_sync_pd_seq_num(9)megasas_allocate_raid_maps(9)megasas_configure_queue_sizes(9)megasas_free_ioc_init_cmd(9)megasas_init_adapter_fusion(9)megasas_fault_detect_work(9)map_cmd_status(9)megasas_is_prp_possible(9)megasas_make_prp_nvme(9)megasas_make_sgl_fusion(9)megasas_make_sgl(9)megasas_stream_detect(9)megasas_set_raidflag_cpu_affinity(9)megasas_build_ldio_fusion(9)megasas_build_ld_nonrw_fusion(9)megasas_build_syspd_fusion(9)megasas_build_io_fusion(9)megasas_build_and_issue_cmd_fusion(9)megasas_complete_r1_command(9)access_irq_context(9)release_irq_context(9)complete_cmd_fusion(9)megasas_enable_irq_poll(9)megasas_sync_irqs(9)megasas_irqpoll(9)megasas_complete_cmd_dpc_fusion(9)megasas_isr_fusion(9)build_mpt_mfi_pass_thru(9)build_mpt_cmd(9)megasas_issue_dcmd_fusion(9)megasas_release_fusion(9)megasas_read_fw_status_reg_fusion(9)megasas_alloc_host_crash_buffer(9)megasas_free_host_crash_buffer(9)megasas_adp_reset_fusion(9)megasas_check_reset_fusion(9)megasas_trigger_snap_dump(9)megasas_tm_response_code(9)megasas_issue_tm(9)
iykyk, that's a lot of fusions. π
ngl bestie, that's the whole page β no hidden options, no exit statuses, no bugs section, she's a short and sweet little kernel function and we respect that. π
and that's a wrap! π this lil page lives in ./drivers/scsi/megaraid, dated October 2026, and she's filed under megasas_set_pd_lba(9) in the Kernel API Manual. mwah, go set some PD LBAs. ππ¦β¨
π¦ 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