rio_disc_mport(9)
πΈ 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:
rio_destid_alloc(9)rio_destid_reserve(9)rio_destid_free(9)rio_destid_first(9)rio_destid_next(9)rio_get_device_id(9)rio_set_device_id(9)rio_clear_locks(9)rio_enum_host(9)rio_device_has_destid(9)rio_release_dev(9)rio_is_switch(9)rio_setup_device(9)rio_sport_is_active(9)rio_get_host_deviceid_lock(9)rio_enum_peer(9)rio_enum_complete(9)rio_disc_peer(9)rio_mport_is_active(9)rio_update_route_tables(9)rio_init_em(9)rio_enum_mport(9)rio_build_route_tables(9)rio_basic_attach(9)
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
- 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