mraid_mm_get_adapter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 space mimd_t ioctl packet πŸ’Œ this is the thing coming at you from userspace, so yes, the __user is 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:

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