MRAID_GET_DEVICE_MAP(9)
π 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β structmraid_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
- 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