nl80211_link_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is a page from the Kernel API Manual (section 9, we're fancy like that ✨), and it's about one tiny little function that goes and fetches you a link ID. That's it. That's the whole vibe. Let's get into it 🫢


✨ NAME ✨

nl80211_link_id β€” literally just returns the link ID πŸ’«


🌸 SYNOPSIS 🌸

unsigned int nl80211_link_id (struct nlattr **attrs );

like, that's the whole signature. she's compact. she's iconic. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • attrs β€” the attributes you wanna go look at πŸ” that's it, that's the argument, no cap.

⭐ RETURN ⭐

She gives you back the link ID πŸŽ‰ … or 0 if it wasn't given πŸ™ˆ (so like, zero is the "girl, nothing here" value, keep that in mind).


πŸ¦‹ DESCRIPTION πŸ¦‹

⚠️ okay this part is the important part, don't skip it bestie ⚠️

Note that this function does not do any validation of the link ID's validity with respect to links that were actually added 😭 like, she does not check. She does not verify. She just hands you the number and trusts you with it.

So because of that, it must be called only from ops with NL80211_FLAG_MLO_VALID_LINK_ID β€” or, alternatively, if additional validation is done βœ… (like, you do the checking yourself, since she's not gonna do it for you πŸ’€).

fr fr, that's a hard requirement, not a suggestion. the function is giving "I'm just a messenger" energy and you have to handle the rest 🌈


🌸 SEE ALSO 🌸

  • Kernel file ./net/wireless/nl80211.c β€” go read the source, she's all in there πŸ“–βœ¨

and that's the page, bestie!! πŸ’– mwah πŸ’‹

source path ./net/wireless, dated October 2026 β€” shoutout to the wireless crew, ilysm, thanks for the snippets πŸ§šπŸ’œ periodt.

πŸ“¦ where this page comes from