mpi3mr_get_..._by_perst_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mpi3mr_get_tgtdev_by_perst_id β€” a Kernel API Manual moment πŸŽ€

okay bestie, welcome to the Kernel API Manual for mpi3mr_get_..._by_perst_id(9) β€” yes the header is literally abbreviated like that, it's giving "we ran out of name space" energy and honestly? iconic. anyway, this one's a tiny lil accessor function and it's gonna take like two seconds, i promise 🫢


✨ NAME ✨

mpi3mr_get_tgtdev_by_perst_id β€” Get tgtdev from persistent ID πŸ’–

like. the whole vibe. you give it a persistent ID, you get a target device back. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mpi3mr_tgt_dev * mpi3mr_get_tgtdev_by_perst_id (struct mpi3mr_ioc
*mrioc , u16 persist_id );

two args, one return, zero drama. slay.


🌸 ARGUMENTS 🌸

  • mrioc β€” the adapter instance reference πŸŽ€ your main character struct, the whole controller basically. she's the context, she's the moment.
  • persist_id β€” the Persistent ID ⭐ a u16, not a u32, not a u64, just a lil u16. it's the ID that persists. iykyk.

πŸ’« DESCRIPTION πŸ’«

okay so it's an accessor β€” a getter, a little looker-upper β€” whose whole job is to retrieve the target device from the Persistent ID πŸ’… she doesn't do the heavy lifting, she just hands you the pointer, and that's valid.

also, ngl, the manpage adds one more thing at the end: Lock version πŸ”’ β€” so yeah, heads up that this is the locking-flavored one. keep that in mind before you go grabbing references all willy-nilly, bestie.


πŸ‘‘ RETURN πŸ‘‘

Target device reference. that's it. that's the tea πŸ“ (a struct mpi3mr_tgt_dev *, per the synopsis β€” go get your thing, queen.)


🌈 SEE ALSO 🌈

literally the entire friend group. the group chat is massive, so buckle up 🧚 β€” here's every single cross-reference, no skips, no cuts, periodt:

not me listing all of those πŸ’€ but a manpage is a manpage and we keep EVERY reference, fr fr. note that __mpi3mr_get_tgtdev_by_perst_id(9) is right there in the list β€” the double-underscore sibling, the prequel. she exists too πŸ‘€

🧚 sign-off 🧚

so that's the whole page, bestie ✨ this one lives under ./drivers/scsi/mpi3mr, and it's dated October 2026 🌸 go forth and look up your target devices responsibly, and remember: Lock version πŸ”’πŸ’œ bye bye!! πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from