mptcp_token_get_sock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mptcp_token_get_sock β€” a Kernel API Manual moment

okay so bestie, buckle up, because we're diving into mptcp_token_get_sock(9) β€” yes that's the page title, and yes it lives in the Kernel API Manual, and yes it's about to eat πŸ’…βœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mptcp_sock * mptcp_token_get_sock (struct net *net , u32 token );

like... she takes two things and gives you back a struct mptcp_sock *. iconic behavior honestly.


πŸŽ€ ARGUMENTS πŸŽ€

  • net β€” the namespace you're restricting the search to. keep it contained, queen πŸ‘‘
  • token β€” the token of the mptcp connection you're trying to retrieve. this is the ✨key✨ to the whole thing.

🌸 DESCRIPTION 🌸

so this function? it returns the mptcp connection structure that matches the given token. that's the whole vibe. 🫢

and the important bit, ngl β€” a reference count on the mptcp socket returned is taken. so like, it's yours now, handle it responsibly πŸ™ˆ


πŸ’€ RETURN πŸ’€

returns NULL if no connection with the given token value exists. that's it. that's the whole return section. no connection = NULL, no cap πŸ’€


🌈 SEE ALSO 🌈

the Kernel file ./net/mptcp/token.c plus the whole token.c friend group, fr fr:


⭐ sign-off time ⭐

this whole page came from ./net/mptcp (that's the source, bestie) and it's dated October 2026 β€” mark your calendars πŸŽ€πŸ’–

now go forth and retrieve your socks, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from