zl3073x_ref_freq_factorize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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. the base Γ— mult duo 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 ⭐

  • 0 on success β€” ate, no crumbs, iconic ✨
  • -EINVAL if 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:

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