llc_circular_between(9)
π llc_circular_between β a Kernel API Manual moment
okay bestie, welcome to the Kernel API Manual, section 9, where we talk about one (1) tiny function that does circular math and honestly ate π
β¨ NAME β¨
llc_circular_between β the little guy that decides whether b is sitting between a and c, or not. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
u8 llc_circular_between (u8 a , u8 b , u8 c );
three u8s in, one u8 out. no cap. π¦
π§ ARGUMENTS π§
aβ the lower bound, aka the start of the vibe zone πbβ the element we're checking to see if it's betweenaandb(yes, fr fr, that's literally what the page says βbis the one under investigation π)cβ the upper bound, the end of the zone, the finish line β
π₯ DESCRIPTION π₯
so the whole point: this function designates whether b is between a and c or not. and because it's circular, the wrap-around case counts too β the page's own example is that 0 is between 127 and 1. iconic, honestly. the number line just looped around and said "i contain multitudes" π
it returns 1 if b is between a and c, and 0 otherwise. binary queen. periodt. π
π«Ά SEE ALSO π«Ά
the page points you at Kernel file ./net/llc/llc_c_ac.c, plus this whole friend group of 9-section besties:
llc_conn_ac_send_ack_if_needed(9)llc_conn_ac_rst_sendack_flag(9)llc_conn_ac_send_i_rsp_f_set_ackpf(9)llc_conn_ac_send_i_as_ack(9)llc_conn_ac_send_rr_rsp_f_set_ackpf(9)llc_conn_ac_inc_npta_value(9)llc_conn_ac_adjust_npta_by_rr(9)llc_conn_ac_adjust_npta_by_rnr(9)llc_conn_ac_dec_tx_win_size(9)llc_conn_ac_inc_tx_win_size(9)llc_conn_disc(9)llc_conn_reset(9)llc_process_tmr_ev(9)
that's the tea π
this one came out of ./net/llc back in October 2026, and yeah β that's the version and the date, so you know exactly which era of kernel lore you're reading. go be between some bounds, 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