nl80211_link_id(9)
π nl80211_link_id(9) β the Kernel API Manual moment π
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
- 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