mptcp_token_iter_next(9)
π mptcp_token_iter_next β kernel API manual, but make it make sense
okay so bestie, this one's a kernel function from the MPTCP token container, and the vibe is: you're walking through a container of tokens, one socket at a time, and this function hands you the next one. it's giving tour guide energy π§
β¨ NAME β¨
mptcp_token_iter_next β iterate over the token container from given pos π
πΈ SYNOPSIS πΈ
struct mptcp_sock * mptcp_token_iter_next (const struct net *net , long
*s_slot , long *s_num );
like literally that's the whole signature, no cap π
π¦ ARGUMENTS π¦
netβ the namespace you're iterating over. that's the world you're walking through, bestie πs_slotβ the start slot number. where you're starting your little stroll πs_numβ the start number inside the given lock. yes, that's what it says, i'm just relaying the message π«Ά
π DESCRIPTION π
so on a successful iteration, two things happen, and you need to know both:
- the iterator gets moved to the next position β‘οΈ
- a reference to the returned socket is acquired π₯
that reference part is the main character energy here β don't sleep on it π
β RETURN β
the first mptcp connection structure found inside the token container, starting from the specified position. and if there's nothing there? NULL. that's it, that's the whole answer π
π SEE ALSO π
kernel file ./net/mptcp/token.c plus the whole token friend group, all iconic, all linked:
mptcp_token_new_request(9)mptcp_token_new_connect(9)mptcp_token_accept(9)mptcp_token_get_sock(9)mptcp_token_destroy_request(9)mptcp_token_destroy(9)
ngl this one's short but she's got range β iterate responsibly and remember that reference gets acquired, so act accordingly π
and that's a wrap, bestie π this page lives under ./net/mptcp, dated October 2026, and it slayed every bit of the way π
β¨π¦
π¦ 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