_base_build_sg_scmd_ieee(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to _base_build_sg_scmd_ieee(9) from the Kernel API Manual πŸ’– this is the page, the whole page, and nothing but the page β€” facts intact, vibe immaculate ✨

πŸ’– NAME πŸ’–

  • _base_build_sg_scmd_ieee β€” the main sg creation routine for IEEE format. periodt.

✨ SYNOPSIS ✨

the signature is giving kernel C realness, so here it is verbatim:

int _base_build_sg_scmd_ieee (struct MPT3SAS_ADAPTER *ioc , struct
       scsi_cmnd *scmd , u16 smid , struct _pcie_device *pcie_device );

πŸŽ€ ARGUMENTS πŸŽ€

  • ioc β€” per adapter object. that's the adapter bestie in question πŸ’…
  • scmd β€” scsi command. iconic scsi command energy.
  • smid β€” system request message index. yes, the system request message index, exactly like it says 🫢
  • pcie_device β€” Pointer to pcie_device. If set, the pcie native sgl will be constructed on need. lowkey important: β€œif set” and β€œon need” are doing real work here ✨

πŸ¦‹ CONTEXT πŸ¦‹

none.

literal none. no context requirements listed. the vibe check is clean 🌸

🌸 DESCRIPTION 🌸

The main routine that builds scatter gather table from a given scsi request sent via the .queuecommand main handler.

that's the whole main-character job: build that scatter gather table from the given scsi request, and it comes in through the .queuecommand main handler πŸ”₯ no extra lore, no invented side quests.

πŸ”₯ RETURN πŸ”₯

0 success, anything else error.

that's it. 0 = slay, anything else = error town 😭

🌈 SEE ALSO 🌈

okay so this SEE ALSO section is a whole group chat, and every single reference is invited β€” in order, no skips, no cap:

cute sign-off bestie: that’s the tea from ./drivers/scsi/mpt3sas πŸ’– dated October 2026 πŸ’– _base_build_sg_scmd_ieee(9) βœ¨πŸ’…

πŸ“¦ where this page comes from