MRAID_GET_DEVICE_MAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… MRAID_GET_DEVICE_MAP (9) β€” the Kernel API Manual moment ✨

okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is MRAID_GET_DEVICE_MAP 🫢 no cap, this one's a whole macro and it's lowkey iconic.


✨ NAME ✨

MRAID_GET_DEVICE_MAP β€” device ids πŸŽ€

like, that's literally the whole vibe. device ids. periodt.


🌸 SYNOPSIS 🌸

MRAID_GET_DEVICE_MAP (adp , scp , p_chan , target , islogical );

five arguments, all up in there, and yes you have to pass every single one fr fr πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adp β€” the adapter's soft state πŸ’– that's your controller's whole little personality, its state of being.
  • scp β€” mid-layer scsi command pointer ✨ the command that's cruising through the mid-layer, pointing right at you.
  • p_chan β€” physical channel on the controller 🌈 like which lane on the controller we're talking about.
  • target β€” target id of the device or logical drive number πŸ‘‘ so either a device target id, or a logical drive number, depending on the situation.
  • islogical β€” set if the command is for the logical drive πŸŽ€ set it, and we know we're dealing with a logical drive. not set, and it's the other thing. iykyk.

πŸ’œ DESCRIPTION πŸ’œ

so this is a macro, right, and its whole job is to retrieve information about:

  • the device class β€” logical or physical 🌸
  • the corresponding physical channel
  • and the target or logical drive number that goes with it πŸ’…

that's it, that's the macro. it pulls that info out for you so you don't have to go digging around in structs like some kind of feral gremlin 😭 she's serving convenience, she's serving clarity, she ate and left no crumbs πŸ”₯


⭐ SEE ALSO ⭐

  • Kernel file ./drivers/scsi/megaraid/mega_common.h β€” struct mraid_pci_blk(9) πŸ¦‹
lowkey go read that header if you want the full lore, this macro's just the door to the whole megaraid cinematic universe 🫢

and that's a wrap bestie!! this page came at you from ./drivers/scsi/megaraid, dated October 2026, in the Kernel API Manual β€” mwah πŸ’‹ stay hydrated, keep your pointers valid, and don't forget to check your islogical flag πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from