llc_find_next_offset(9)
π llc_find_next_offset(9) β Kernel API Manual, but make it make sense
okay bestie, so this is a page from the Kernel API Manual, and it's about a lil function called llc_find_next_offset. it lives in the Linux LLC connection code and honestly? she's giving humble little helper that knows exactly where everything is. let's get into it β¨
πΈ NAME πΈ
llc_find_next_offset β finds offset for next category of transitions. literally that's her whole job, and she does it slayfully π
π¦ SYNOPSIS π¦
u16 llc_find_next_offset (struct llc_conn_state *state , u16 offset );
like, copy that exactly, don't come at me about the spacing, that's how the original has it π
π ARGUMENTS π
stateβ state table. yes queen, hand her the whole table.offsetβ start offset. this is where you're starting from, bestie, and she'll take it from there.
β¨ DESCRIPTION β¨
okay so picture this: you're in the transition table, right, and you need to find the offset of the next category of transitions in that transition table. that's it. that's the whole function.
she returns the start index of next category β that's the u16 coming back at ya π«Ά no cap, that's the return value.
lowkey obsessed with how short and sweet this one is. no scary caveats, no "undefined behaviour", no "do not call after free" energy. just vibes and an index. π
π SEE ALSO π
this is the part where the manpage goes full group-chat-adds-everyone π but fr, these are all in the kernel file ./net/llc/llc_conn.c:
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_established(9)llc_lookup_listener(9)llc_data_accept_state(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)
like I said. everyone's invited. the whole squad is here π
okay that's the page!! this one came from the source path ./net/llc and it's dated October 2026, and the page itself is llc_find_next_offset(9) in case you forgot where you were. mwah, go read the source bestie πππΈ
π¦ 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