llc_sap_find(9)
π llc_sap_find(9) π
okay bestie, welcome to the kernel API manual, section 9 β this one lives in llc_sap_find(9) and it's genuinely so useful, let me tell you everything π
β¨ NAME β¨
llc_sap_find β searches a SAP in station π
like, it's a finder. for SAPs. in a station. slay.
πΈ SYNOPSIS πΈ
struct llc_sap * llc_sap_find (unsigned char sap_value );
that's the whole signature, no cap β it takes one unsigned char and hands you back a struct llc_sap * π«Ά
π¦ ARGUMENTS π¦
sap_valueβ the sap to be found π literally the SAP you're out here looking for, bestie.
π DESCRIPTION π
okay so here's the vibe: it searches for a sap in the sap list of the LLC's station, and it does it upon the sap ID β iykyk, the ID is the whole personality here π
if the sap is found, it will be refcounted π and that means the user will have to do a llc_sap_put after use. yes bestie, you have to give it back β don't just hold onto it forever, that's not the move π
it returns the sap, or NULL if not found. NULL is the "she's not here, babes" of return values π
β οΈ real talk: found means refcounted means you owe a llc_sap_put. don't ghost it.
π§ SEE ALSO π§
- Kernel file
./net/llc/llc_core.cπ llc_sap_alloc(9)β¨llc_sap_open(9)πΈllc_sap_close(9)π
go read those next, periodt π
and that's the page!! this lil icon comes to you from the ./net/llc directory, dated October 2026, filed under llc_sap_find(9) β mwah, love u, go refcount responsibly ππ¦β¨
π¦ 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