mraid_mm_get_adapter(9)
π mraid_mm_get_adapter β kernel API manual, section 9 π
okay bestie, settle in, because we're doing kernel API hours and this one is lowkey iconic: mraid_mm_get_adapter(9). yeah. section 9. we're in that part of the manual, the driver-internals part. grab a strawberry drink π and let's go.
β¨ NAME β¨
mraid_mm_get_adapter β returns the corresponding adapters for the mimd packet π«Ά
πΈ SYNOPSIS πΈ
mraid_mmadp_t * mraid_mm_get_adapter (mimd_t __user *umimd , int *rval );
like, look at her. one function, two args, a pointer coming out. main character energy fr fr π
π¦ ARGUMENTS π¦
umimdβ the user spacemimd_tioctl packet π this is the thing coming at you from userspace, so yes, the__useris doing a lot of heavy lifting there.rvalβ the returned success/error status π out-param behaviour, she's writing back to you, that's the whole vibe.
π DESCRIPTION π
so the function's return value? it's a pointer to the located adapter. that's the tea β literally the entire description. you hand it the packet, it hands you back a pointer to the adapter it found. not me being obsessed with a one-line description π it's giving confident. it's giving "I said what I said."
lowkey important: the rval out-param is where the success/error status lands, so don't go ignoring her bestie π
π₯ SEE ALSO π₯
the whole friend group shows up for this one, no cap:
- kernel file
./drivers/scsi/megaraid/megaraid_mm.cπ (yes, the whole file, she's listed as a reference, we love a source-file shoutout) mraid_mm_open(9)mraid_mm_ioctl(9)handle_drvrcmd(9)mimd_to_kioc(9)mraid_mm_attach_buf(9)mraid_mm_alloc_kioc(9)mraid_mm_dealloc_kioc(9)lld_ioctl(9)ioctl_done(9)lld_timedout(9)kioc_to_mimd(9)hinfo_to_cinfo(9)mraid_mm_register_adp(9)mraid_mm_adapter_app_handle(9)mraid_mm_setup_dma_pools(9)mraid_mm_unregister_adp(9)mraid_mm_free_adp_resources(9)mraid_mm_teardown_dma_pools(9)mraid_mm_init(9)mraid_mm_exit(9)
that's the entire megaraid mm squad, assembled, matching outfits, β¨ slay β¨. read them in order if you want the full lore, iykyk π§
ngl bestie, this page lives in ./drivers/scsi/megaraid and it's stamped October 2026 β so like, future-coded manual, we love to see it β go read the source file, it's all there, periodt π
stay hydrated, go touch some grass, and remember: every pointer deserves a vibe check ππ
π¦ 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