__llc_lookup_established(9)
π
__llc_lookup_established(9) β bestie's guide to finding a connection π
okay so you're reading __llc_lookup_established(9) from the Kernel API Manual, and honestly? it's a little baddie with one job and it does it flawlessly. let's get into it π«Ά
β¨ NAME β¨
__llc_lookup_established β finds the connection for the remote/local sap/mac πΈ
literally what it says on the tin. it goes looking for a connection, using the remote and local sap/mac combo. no cap.
π¦ SYNOPSIS π¦
struct sock * __llc_lookup_established (struct llc_sap *sap , struct llc_addr *daddr , struct llc_addr *laddr , const struct net *net );
π ARGUMENTS π
sapβ the SAP. that's the service access point, bestie πdaddrβ the address of the remote LLC (that's MAC + SAP, both of 'em) β¨laddrβ the address of the local LLC (again, MAC + SAP) π¦netβ the netns to look up a socket in π
π₯ DESCRIPTION π₯
so the way that this works π β it searches the connection list of the SAP and finds the connection using the remote mac, the remote sap, the local mac, and the local sap. all four. it's thorough like that π
if it finds the connection? you get a pointer to it, slay π. if it doesn't? you get NULL, and that's just how it is π
β οΈ heads up bestie: the caller has to make sure local_bh is disabled. not optional, not a vibe, it's the rule π¨
π SEE ALSO π
all the siblings in the Kernel file ./net/llc/llc_conn.c β go say hi to the whole fam π«Ά
llc_conn_state_process(9)llc_conn_rtn_pdu(9)llc_conn_resend_i_pdu_as_cmd(9)llc_conn_resend_i_pdu_as_rsp(9)llc_conn_remove_acked_pdus(9)llc_conn_send_pdus(9)llc_conn_service(9)llc_qualify_conn_ev(9)llc_exec_conn_trans_actions(9)llc_lookup_listener(9)llc_data_accept_state(9)llc_find_next_offset(9)llc_build_offset_table(9)llc_find_offset(9)llc_sap_add_socket(9)llc_sap_remove_socket(9)llc_conn_rcv(9)llc_backlog_rcv(9)llc_sk_init(9)llc_sk_alloc(9)llc_sk_free(9)llc_sk_reset(9)
and that's the whole page, periodt π this one came to you from ./net/llc, dated October 2026, and it's all about __llc_lookup_established(9) β iykyk βπ§
π¦ 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