mptcp_token_get_sock(9)
π 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:
mptcp_token_new_request(9)mptcp_token_new_connect(9)mptcp_token_accept(9)mptcp_token_iter_next(9)mptcp_token_destroy_request(9)mptcp_token_destroy(9)
β 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
- 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