llc_lookup_listener(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– llc_lookup_listener β€” a Kernel API Manual moment (section 9, bestie) πŸ’–

okay so picture this: you're deep in the Kernel API Manual, section 9, and you need to know who's listening. That's literally this function. She finds the listener for a local MAC + SAP, and she does it flawlessly. no cap. πŸŽ€


✨ NAME ✨

llc_lookup_listener β€” finds the listener for a local MAC + SAP πŸ¦‹


🌸 SYNOPSIS 🌸

struct sock * llc_lookup_listener (struct llc_sap *sap , struct llc_addr
*laddr , const struct net *net );

πŸ’… ARGUMENTS πŸ’…

  • sap β€” the SAP. that's it, that's the whole description. iconic minimalism honestly πŸ‘‘
  • laddr β€” the address of the local LLC (that's MAC + SAP, both of them, together, a little duo 🫢)
  • net β€” the netns you wanna look up a socket in 🌈

πŸ”₯ DESCRIPTION πŸ”₯

So what she actually does: she searches the connection list of the SAP and finds the connection that's listening on the local mac and the local sap. very demure, very targeted. πŸ’…

She returns a pointer to the parent socket she found β€” and NULL otherwise, because sometimes the answer is just no. 😭

⚠️ real talk though: the caller has to make sure local_bh is disabled. this is not a suggestion, bestie, it's a whole requirement. do not skip the vibe check on this one. πŸ’€

🧚 SEE ALSO 🧚

Kernel file ./net/llc/llc_conn.c β€” and the whole friend group, fr fr:


and that's the page!! πŸ“ source: ./net/llc, dated October 2026, filed under llc_lookup_listener(9). go forth and look up those listeners, bestie, you've got this πŸ’œβœ¨

πŸ“¦ where this page comes from