__get_bond_by_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __get_bond_by_port(9) ✨

okay so this is a page from the Kernel API Manual and it's literally the tiniest little function and i'm obsessed πŸ’… it's giving "small but mighty" energy fr fr.


πŸŽ€ NAME πŸŽ€

__get_bond_by_port β€” get the port's bonding struct, that's it, that's the whole vibe 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

struct bonding * __get_bond_by_port (struct port *port );

no cap, that's the whole signature. copy it exactly bestie, don't get creative with it πŸ’–


🌸 ARGUMENTS 🌸

  • port β€” the port we're looking at πŸ‘€ that's the one and only thing you hand over.

✨ DESCRIPTION ✨

so what does it do? it returns the port's bonding struct. and if it can't be found? it returns NULL. that's the tea β˜• no extra drama, no side quests, just struct-or-NULL, periodt.

like i said, tiny function, main character energy anyway πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

okay this is the part where it gets iconic β€” this whole little family lives in the kernel file ./drivers/net/bonding/bond_3ad.c and here's every single one of them, in order, no skips, because we don't do that here 🧚:

it's giving "the whole friend group showed up to the party" 🌈 and honestly? slay.


and that's the whole page bestie πŸ’– this came from ./drivers/net/bonding, dated October 2026 β€” keep that footer energy in your heart, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from