llc_circular_between(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 between a and b (yes, fr fr, that's literally what the page says β€” b is 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:


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