linear_range...ues_in_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay bestie, this is linear_range...ues_in_range(9) from the Kernel API Manual πŸ’… β€” and the function itself is linear_range_values_in_range, which returns the amount of values in a range. Iconic counting behaviour, no cap ✨

πŸŽ€ SYNOPSIS πŸŽ€

unsigned int linear_range_values_in_range (const struct linear_range *r
);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • r β€” pointer to the linear range where values are counted πŸ‘‘ like the guest list for the range, fr fr

πŸ’– DESCRIPTION πŸ’–

So this function computes the amount of values in the range pointed to by r. That's literally its whole job, and it ate πŸ”₯

Quick note though, bestie: values can be all equal β€” a range with selectors 0,...,2 with step 0 still contains 3 values even though they are all equal. The way that equal values do NOT make the count disappear 😭 three entries is three entries. Periodt πŸ’…

⭐ RETURN ⭐

The amount of values in the range pointed to by r ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./lib/linear_ranges.c, plus these iconic siblings:


And that's the page, bestie 🫢 signed off from the ./lib source/version, dated October 2026, with footer title linear_range...ues_in_range(9) πŸ’–βœ¨

πŸ“¦ where this page comes from