rio_disc_mport(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 rio_disc_mport πŸ’…

okay bestie, so this is a page from the Kernel API Manual β€” yes, the kernel, we're literally in the kernel rn β€” and it's about rio_disc_mport. She's the one who kicks off discovery through a master port. Let's get into it 🫢


✨ NAME ✨

rio_disc_mport β€” start discovery through a master port. that's it, that's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int rio_disc_mport (struct rio_mport *mport , u32 flags );

literally the whole signature, no cap πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • mport β€” the master port that's gonna send the transactions. she's the main character here πŸ‘‘
  • flags β€” discovery control flags. the lil knobs that tell discovery how to behave πŸŽ›οΈ

πŸ”₯ DESCRIPTION πŸ”₯

so. this function starts the discovery process. periodt.

if we have an active link, then it waits for the signal that enumeration is complete β€” but only if wait is allowed. iykyk, no waiting if waiting isn't allowed πŸ™ˆ

and when enumeration completion gets signaled? that's when we start recursive peer discovery. it's giving recursive, it's giving peer, it's giving discovery 🌈

returns 0 if discovery succeeds, or -EBUSY on failure. so like, -EBUSY means nope, she's busy, try again later bestie 😭


🧚 SEE ALSO 🧚

kernel file ./drivers/rapidio/rio-scan.c β€” go look at her, she's iconic πŸ’–

and then the whole friend group, fr fr:

like, the whole squad, all present and accounted for πŸ’…


and that's the tea πŸ“ this one lives in ./drivers/rapidio and the page is dated October 2026 β€” so yeah, she's from the future, slay ⭐ bye bestie, go discover some peers πŸ¦‹βœ¨

πŸ“¦ where this page comes from