linear_range...ues_in_range(9)
πΈ 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:
linear_range_values_in_range_array(9)linear_range_get_max_value(9)linear_range_get_value(9)linear_range_get_value_array(9)linear_range_get_selector_low(9)linear_range_get_selector_low_array(9)linear_range_get_selector_high(9)linear_range_get_selector_high_array(9)linear_range_get_selector_within(9)
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
- 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