llc_sap_close(9)
π 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 π
- kernel file
./net/llc/llc_core.c llc_sap_alloc(9)llc_sap_find(9)llc_sap_open(9)
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
- 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