megasas_set_pd_lba(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ’Œ (a struct MPI2_RAID_SCSI_IO_REQUEST *, if you were wondering)
  • cdb_len β€” the cdb length, a lil u8 🧚
  • io_info β€” IO information, all the deets basically πŸ“‹
  • scp β€” the SCSI command, a struct scsi_cmnd * ⭐
  • local_map_ptr β€” the Raid map πŸ—ΊοΈ, a struct MR_DRV_RAID_MAP_ALL * β€” yes the type is literally MR_DRV_RAID_MAP_ALL, she's loud and proud
  • ref_tag β€” the Primary reference tag 🏷️ (a u32)

πŸ’– 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 πŸ‘‘:

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