zl3073x_ref_freq_factorize(9)
π zl3073x_ref_freq_factorize β factorize given frequency
okay so bestie, this is a page straight out of the Kernel API Manual and honestly? it's a little sleeper hit. it's got one job and it does it cute. let's get into it β¨
β¨ SYNOPSIS β¨
int zl3073x_ref_freq_factorize (u32 freq , u16 *base , u16 *mult );
that's it. that's the whole vibe. three params, one int coming back at ya π«Ά
π ARGUMENTS π
freqβ the input frequency. the thing you're bringing to the function and asking "hey, can you break this down for me?" πbaseβ base frequency. output territory, babes.multβ multiplier. also output territory. thebaseΓmultduo is the whole point, iykyk π₯
π DESCRIPTION π
so here's the tea: zl3073x_ref_freq_factorize checks if the given frequency can be factorized using one of the supported base frequencies. that's the vibe check. π§
and if it can β slay β then the base frequency and multiplier get stored into the appropriate parameters, but only if they are not NULL. so like, don't pass NULL expecting free real estate, bestie, the function is checking. π
lowkey the most respectful little function ever. it doesn't touch what it doesn't need to. main character energy fr fr π
β RETURN β
0on success β ate, no crumbs, iconic β¨-EINVALif the frequency cannot be factorized β the factorization said "not today" π
π SEE ALSO π
go peek at the Kernel file ./drivers/dpll/zl3073x/ref.c and also these absolute legends:
zl3073x_ref_state_update(9)zl3073x_ref_state_fetch(9)zl3073x_ref_state_get(9)zl3073x_ref_state_set(9)
like, the whole friend group. go say hi π¦
ngl, if your frequency won't factorize you're getting -EINVAL and there's no cute way to spin that. handle it. π
mwah, that's the page! sourced from ./drivers/dpll/zl3073x, dated October 2026, and brought to you with love and probably too many emoji. bye bestie, go factorize something πΈππ
π¦ 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