of_clk_parent_fill(9)
π of_clk_parent_fill(9) π
Okay bestie, so this is a page straight outta the Kernel API Manual β yes, the Kernel API Manual, we're literally in the big leagues now β and it's all about of_clk_parent_fill. It's a tiny little function with main character energy, and honestly? It ate. Let's get into it π«Ά
β¨ NAME β¨
of_clk_parent_fill β fill @parents with the names of @np's parents, and then hand you back the number of parents π
Like, that's the whole gig. It fills the array, it tells you how many it filled. No cap.
π¦ SYNOPSIS π¦
int of_clk_parent_fill (struct device_node *np , const char **parents ,
unsigned int size );
Look at her. Three args, returns an int. Simple, clean, iconic π
π ARGUMENTS π
npβ the device node pointer that's associated with the clock provider. This is the node whose parents we're talking about, iykyk πΈparentsβ pointer to a char array that holds the parents' names. This is your output spot, bestie, so make sure it's got room πsizeβ the size of theparentsarray. Yes, you do have to tell it. Boundaries are healthy β¨
β RETURN β
It returns the number of parents for the clock node π₯
That's it, that's the return. Literally just the count. Not the parents themselves β those went into your array. She's giving "I did the work, now here's the receipt" π
π SEE ALSO π
Okay this list is long long, like a group chat after a drama, but every single one is here because we don't do half-finished around here π
- Kernel file
./drivers/clk/clk.cβstruct clk_core(9) clk_pm_runtime_get_all(9)clk_pm_runtime_put_all(9)clk_core_get(9)clk_determine_rate_noop(9)clk_rate_exclusive_put(9)clk_rate_exclusive_get(9)clk_unprepare(9)clk_prepare(9)clk_disable(9)clk_gate_restore_context(9)clk_save_context(9)clk_restore_context(9)clk_enable(9)clk_is_enabled_when_prepared(9)clk_hw_init_rate_request(9)clk_hw_forward_rate_request(9)__clk_determine_rate(9)clk_hw_round_rate(9)clk_round_rate(9)__clk_notify(9)__clk_recalc_accuracies(9)clk_get_accuracy(9)__clk_recalc_rates(9)clk_get_rate(9)clk_hw_get_parent_index(9)__clk_speculate_rates(9)clk_set_rate(9)clk_set_rate_exclusive(9)clk_set_rate_range(9)clk_set_min_rate(9)clk_set_max_rate(9)clk_get_parent(9)clk_has_parent(9)clk_set_parent(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_debug_register(9)clk_debug_init(9)__clk_core_init(9)clk_core_link_consumer(9)clk_core_unlink_consumer(9)alloc_clk(9)free_clk(9)clk_hw_create_clk(9)clk_hw_get_clk(9)dev_or_parent_of_node(9)clk_register(9)clk_hw_register(9)clk_unregister(9)clk_hw_unregister(9)devm_clk_register(9)devm_clk_hw_register(9)devm_clk_hw_get_clk(9)clk_notifier_register(9)clk_notifier_unregister(9)struct of_clk_provider(9)of_clk_add_provider(9)of_clk_add_hw_provider(9)devm_of_clk_add_hw_provider(9)of_clk_del_provider(9)of_parse_clkspec(9)of_clk_get_from_provider(9)of_clk_get_by_name(9)of_clk_get_parent_count(9)of_clk_detect_critical(9)of_clk_init(9)
Fr fr go read a few of those if you wanna understand the whole clock vibe. of_clk_get_parent_count(9) is lowkey her cousin, so maybe start there π§
And that's the page, bestie! This lil gem lives under ./drivers/clk and was dated October 2026 β so yeah, she's from the future, obviously π
Slay, go write some clock code, and remember: fill your array, respect your size β¨π
π¦ 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