rio_is_switch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

hii bestie πŸ’– welcome to the rio_is_switch(9) page from the Kernel API Manual. It’s literally about testing if a RIO device has switch capabilities β€” cute, focused, no cap ✨.

✨ SYNOPSIS ✨

int rio_is_switch (struct rio_dev *rdev );

πŸ’… ARGUMENTS πŸ’…

  • rdev β€” the RIO device, aka the thing you’re checking. It’s a struct rio_dev *, periodt πŸ’….

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the vibe: rio_is_switch() gets the RIO device Processing Element Features register contents and tests for switch capabilities. Slay 🌸. It returns 1 if the device is a switch or 0 if it is not a switch. Not me being clear for once 😭.

Heads up bestie: the RIO device struct is freed. That’s in the original, so don’t skip it πŸ’€.

🌈 SEE ALSO 🌈

Kernel file ./drivers/rapidio/rio-scan.c β€” and the whole iconic friend group πŸ‘‘


bye bestie 🫢 β€” this page’s source/version is ./drivers/rapidio, dated October 2026, and it’s the rio_is_switch(9) manual page. mwah πŸ’‹

πŸ“¦ where this page comes from