qeth_bridgeport_query_ports(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ qeth_bridgeport_query_ports ✨

okay so bestie, this is a page from the Kernel API Manual and it's literally all about asking your local bridgeport "hey girl, what's your status?" πŸ’… it's qeth_bridgeport_query_ports, and honestly? she's giving utility icon. πŸ”₯


🌸 NAME 🌸

qeth_bridgeport_query_ports β€” query local bridgeport status. that's it, that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int qeth_bridgeport_query_ports (struct qeth_card *card , enum
qeth_sbp_roles *role , enum qeth_sbp_states *state , bool *os_mismatch
);

like, look at that signature. she's organized. she knows what she wants. πŸ’œ


πŸ‘‘ ARGUMENTS πŸ‘‘

  • card β€” a qeth_card structure pointer, aka the main character of this whole operation. 🌟
  • role β€” the role of the port, and the vibes are numbered: 0-none, 1-primary, 2-secondary. pick your lane, periodt. πŸ’…
  • state β€” the state of the port: 0-inactive, 1-standby, 2-active. it's giving traffic light energy ngl. 🚦
  • os_mismatch β€” if this one is non-NULL, it gets set to true when the firmware reports an OS family mismatch. so like... drama detected, basically. πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

okay so what does she return? she returns a negative errno-compatible error indication, or 0 on success. no cap. ✨

and also β€” hardware operation failure. that's a thing that's listed here, so bestie, we're listing it. hardware said no, and that's just how it is sometimes. 😭

fr fr, keep an eye on that negative return value β€” it's not decorative. 🫢

🌈 SEE ALSO 🌈

kernel file ./drivers/s390/net/qeth_l2_main.c plus this whole squad right here:

go read those too, iykyk. πŸ“šπŸ’«


and that's the page, bestie!! πŸŽ€ this little gem lives over in ./drivers/s390/net and it's dated October 2026 β€” so yeah, she's from the future and she's still iconic. πŸ’€πŸ‘‘ slay, honestly. πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from