llc_sap_close(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… llc_sap_close(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is llc_sap_close, straight out of the Kernel API Manual, and it's literally the "bye bestie" button for a SAP. let's get into it ✨


🌸 NAME 🌸

llc_sap_close β€” the close interface for upper layers, no cap 🫢


✨ SYNOPSIS ✨

void llc_sap_close (struct llc_sap *sap );

that's it. that's the whole vibe check. it returns nothing (void) and it takes exactly one thing πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sap β€” the SAP that's getting closed. that's the whole argument, she's simple and she knows it πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so this is the close interface function for the upper layer. literally every single one who wants to close an open SAP β€” like, for example, NetBeUI β€” should call this function. yes, all of them. it's giving "mandatory goodbye" energy 😭

what it actually does: it removes this sap from the list of saps in the station, and then it frees the memory for this sap. remove first, free second, that's the order, don't come for her 🫢

ngl it's a two-for-one: list cleanup and memory cleanup, in one little call. iconic behaviour, honestly ✨

πŸ‘‘ SEE ALSO πŸ‘‘

the whole SAP friend group, fr fr 🌈


and that's the page! πŸ’– shoutout to ./net/llc for the source, dated October 2026 β€” mwah, love that for us πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from