dfll_init_clks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 dfll_init_clks β€” the clk_get() era for the DFLL source clocks 🌸

okay so you're in the Kernel API Manual bestie, and this is the dfll_init_clks(9) page πŸ’… we're talking tegra DFLL energy, ./drivers/clk/tegra vibes, the whole thing. don't worry, it's literally one function and it's not scary.


✨ NAME ✨

dfll_init_clks β€” does a clk_get() on the DFLL source clocks πŸŽ€

✨ SYNOPSIS ✨

int dfll_init_clks (struct tegra_dfll *td );

✨ ARGUMENTS ✨

  • td β€” your DFLL instance πŸ¦‹ that's it, that's the whole argument list, we love a low-maintenance signature.

✨ DESCRIPTION ✨

So basically: this calls clk_get on the DFLL source clocks and stashes the pointers away for later use 🫢 girl math, but for clock pointers. it's giving "grab it now, need it later" main character energy.

It returns 0 on success πŸŽ‰ β€” or an error if one or more of the clocks couldn't be looked up (see devm_clk_get for the details on that, iykyk). so like, success is 0, everything else means a clock said "not today" 😭

✨ SEE ALSO ✨

the whole friend group fr fr, no cap, all of these are (9) pages:

enum dfll_ctrl_mode(9), enum dfll_tune_range(9), struct dfll_rate_req(9), dfll_is_running(9), tegra_dfll_runtime_resume(9), tegra_dfll_runtime_suspend(9), dfll_tune_low(9), dfll_scale_dvco_rate(9), dfll_set_mode(9), dfll_i2c_set_output_enabled(9), dfll_pwm_set_output_enabled(9), dfll_set_force_output_value(9), dfll_set_force_output_enabled(9), dfll_force_output(9), dfll_load_i2c_lut(9), dfll_init_i2c_if(9), dfll_init_out_if(9), find_lut_index_for_rate(9), dfll_calculate_rate_request(9), dfll_set_frequency_request(9), dfll_request_rate(9), dfll_disable(9), dfll_enable(9), dfll_set_open_loop_config(9), dfll_lock(9), dfll_unlock(9), dfll_register_clk(9), dfll_unregister_clk(9), dfll_calc_monitored_rate(9), dfll_read_monitor_rate(9), dfll_set_default_params(9), dfll_init(9), tegra_dfll_suspend(9), tegra_dfll_resume(9), dfll_build_i2c_lut(9), read_dt_param(9), dfll_fetch_i2c_params(9), dfll_fetch_common_params(9), tegra_dfll_register(9), tegra_dfll_unregister(9)

and yeah β€” the kernel file itself lives at ./drivers/clk/tegra/clk-dfll.c if you wanna go read the source like the icon you are πŸ‘‘


lowkey the whole page is just "call clk_get, save the pointers, return 0 or an error" β€” but honestly? iconic. periodt. πŸ’–

that's the whole thing bestie, no crumbs left πŸ“ this page came from ./drivers/clk/tegra, dated October 2026 β€” mwah, go touch some clocks (responsibly) πŸ§šπŸ’œ

πŸ“¦ where this page comes from