clk_get_parent(9)
π clk_get_parent β Kernel API Manual, bestie edition π
Okay so picture this: you're deep in the kernel, manual page clk_get_parent(9) open, and you just want to know who's your clock's parent. That's the whole vibe of this page. Let's go.
β¨ NAME β¨
clk_get_parent β get the parent clock source for this clock π«Ά
Like, the clock's literal parent. Its main character ancestor. The one it answers to. iykyk.
πΈ SYNOPSIS πΈ
struct clk * clk_get_parent (struct clk *clk );
That's it. One arg. No cap, she's a one-liner.
π¦ ARGUMENTS π¦
clkβ clock source π
(yes bestie that's the whole description, it's giving minimalist icon behavior)
π DESCRIPTION π
So what does it actually do? It returns a struct clk corresponding to the parent clock source. Family reunion time. π
And if clk is NULL? It returns NULL. Simple as that. No drama, no crash, no undefined chaos β just NULL in, NULL out. Lowkey elegant honestly.
Quick reminder: the return is either a validstruct clk *for the parent, orNULLifclkwasNULL. Those are the two outcomes the page gives us. Periodt.
π SEE ALSO π
The whole clk friend group showed up, and honestly the group chat is popping off. π Also there's a Kernel file mentioned: ./include/linux/clk.h β go say hi to clk.h, it holds the receipts.
clk notifier callback types(9)struct clk_notifier(9)struct clk_notifier_data(9)struct clk_bulk_data(9)clk_notifier_register(9)clk_notifier_unregister(9)devm_clk_notifier_register(9)clk_get_accuracy(9)clk_set_phase(9)clk_get_phase(9)clk_set_duty_cycle(9)clk_get_scaled_duty_cycle(9)clk_is_match(9)clk_rate_exclusive_get(9)devm_clk_rate_exclusive_get(9)clk_rate_exclusive_put(9)clk_save_context(9)clk_restore_context(9)clk_prepare(9)clk_unprepare(9)clk_is_enabled_when_prepared(9)clk_get(9)clk_bulk_get(9)clk_bulk_get_all(9)clk_bulk_get_optional(9)devm_clk_bulk_get(9)devm_clk_bulk_get_optional(9)devm_clk_bulk_get_enable(9)devm_clk_bulk_get_optional_enable(9)devm_clk_bulk_get_all(9)devm_clk_bulk_get_all_enabled(9)devm_clk_get(9)devm_clk_get_prepared(9)devm_clk_get_enabled(9)devm_clk_get_optional(9)devm_clk_get_optional_prepared(9)devm_clk_get_optional_enabled(9)devm_clk_get_optional_enabled_with_rate(9)devm_get_clk_from_child(9)clk_enable(9)clk_bulk_enable(9)clk_disable(9)clk_bulk_disable(9)clk_get_rate(9)clk_put(9)clk_bulk_put(9)clk_bulk_put_all(9)devm_clk_put(9)clk_round_rate(9)clk_set_rate(9)clk_set_rate_exclusive(9)clk_has_parent(9)clk_set_rate_range(9)clk_set_min_rate(9)clk_set_max_rate(9)clk_set_parent(9)clk_get_sys(9)clk_drop_range(9)clk_get_optional(9)
That's the whole squad, go read them all, they're literally all besties. π
Mwah π β this page lives in ./include/linux, it's the October 2026 edition, and it's filed under clk_get_parent(9). Go get that parent clock, bestie, you ate. π
π¦ 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