snd_interval_muldivk(9)
π snd_interval_muldivk β bestie, we're refining an interval β¨
Okay so real talk: this is a page from the Kernel API Manual, and it's about doing some math on interval values. It's short, it's sweet, it's giving "small function, big job" energy. Let's get into it π«Ά
β¨ NAME β¨
snd_interval_muldivk β refine the interval value π
πΈ SYNOPSIS πΈ
void snd_interval_muldivk (const struct snd_interval *a , const struct
snd_interval *b , unsigned int k , struct snd_interval *c );
π ARGUMENTS π
aβ dividend numero uno, the first one bestie πbβ dividend number two, the sequel πΈkβ the divisor, and heads up, it's an integer (unsigned, no cap) π₯cβ the result lives here, this is where the output goes β¨
π₯ DESCRIPTION π₯
So the whole vibe is literally this:
c = a * b / k
That's it. That's the function. You multiply a by b, divide by k, and the answer lands in c.
It returns non-zero if the value is changed, and zero if it's not changed. Simple as that π
Not me noticing the synopsis says void while the description talks about a return value β anyway, that's exactly what the page says, so I'm passing it straight to you, no edits, no notes π
π¦ SEE ALSO π¦
Kernel file ./sound/core/pcm_lib.c β and the whole extended friend group π:
snd_pcm_set_ops(9)snd_pcm_set_sync_per_card(9)snd_interval_refine(9)snd_interval_div(9)snd_interval_mulkdiv(9)snd_interval_ratnum(9)snd_interval_ratden(9)snd_interval_list(9)snd_interval_ranges(9)snd_pcm_hw_rule_add(9)snd_pcm_hw_constraint_mask(9)snd_pcm_hw_constraint_mask64(9)snd_pcm_hw_constraint_integer(9)snd_pcm_hw_constraint_minmax(9)snd_pcm_hw_constraint_list(9)snd_pcm_hw_constraint_ranges(9)snd_pcm_hw_constraint_ratnums(9)snd_pcm_hw_constraint_ratdens(9)snd_pcm_hw_constraint_msbits(9)snd_pcm_hw_constraint_step(9)snd_pcm_hw_constraint_pow2(9)snd_pcm_hw_rule_noresample(9)snd_pcm_hw_param_value(9)snd_pcm_hw_param_first(9)snd_pcm_hw_param_last(9)snd_pcm_hw_params_bits(9)snd_pcm_lib_ioctl(9)snd_pcm_period_elapsed_under_stream_lock(9)snd_pcm_period_elapsed(9)snd_pcm_add_chmap_ctls(9)
And that's the whole page, bestie β you ate that π β¨
This lil' baddie lives in ./sound/core, dated October 2026, and it's filed under that kernel API manual energy. Go forth and refine those intervals, icon ππ
π¦ 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