clk_hw_get_of_node(9)
π
clk_hw_get_of_node (9) β the Kernel API Manual, bestie edition β¨
okay so you're looking at the clk_hw_get_of_node(9) page from the Kernel API Manual, and honestly? it's a short one. like, grab a lil snack, this is a quick read π
πΈ NAME πΈ
clk_hw_get_of_node β get device_node from a hardware clock. that's the whole gig. no cap.
π SYNOPSIS π
struct device_node * clk_hw_get_of_node (const struct clk_hw *hw );
literally just hand it a clk_hw pointer and it hands you back a struct device_node *. iconic behavior tbh π«Ά
π¦ ARGUMENTS π¦
hwβ theclk_hwpointer you're pulling thestruct device_nodefrom. that's it, that's the only thing it wants from you π
β¨ DESCRIPTION β¨
so this is a little helper function whose entire main character energy is: get the struct device_node that's associated with a hardware clock. it's giving "small function, very clear purpose" π
no drama, no side quests.
β RETURN β
it returns the struct device_node associated with the clock. and if there literally isn't one? you get NULL. like, no node, no vibes. NULL. periodt π
don't forget the NULL case exists β check before you go dereferencing, bestie, fr fr π
π SEE ALSO π
okay this is the part where the page goes full group-chat-tag-everyone mode. the whole clk squad shows up. also heads up, the kernel file is ./include/linux/clk-provider.h π
- clk framework flags(9)
- struct clk_rate_request(9)
- struct clk_duty(9)
- struct clk_spread_spectrum(9)
- struct clk_ops(9)
- struct clk_parent_data(9)
- struct clk_init_data(9)
- struct clk_hw(9)
- struct clk_fixed_rate(9)
- clk_hw_register_fixed_rate(9)
- devm_clk_hw_register_fixed_rate(9)
- devm_clk_hw_register_fixed_rate_parent_data(9)
- clk_hw_register_fixed_rate_parent_hw(9)
- clk_hw_register_fixed_rate_parent_data(9)
- clk_hw_register_fixed_rate_with_accuracy(9)
- clk_hw_register_fixed_rate_with_accuracy_parent_hw(9)
- clk_hw_register_fixed_rate_with_accuracy_parent_data(9)
- clk_hw_register_fixed_rate_parent_accuracy(9)
- struct clk_gate(9)
- clk_hw_register_gate(9)
- clk_hw_register_gate_parent_hw(9)
- clk_hw_register_gate_parent_data(9)
- devm_clk_hw_register_gate(9)
- devm_clk_hw_register_gate_parent_hw(9)
- devm_clk_hw_register_gate_parent_data(9)
- struct clk_divider(9)
- clk_register_divider(9)
- clk_hw_register_divider(9)
- clk_hw_register_divider_parent_hw(9)
- clk_hw_register_divider_parent_data(9)
- clk_hw_register_divider_table(9)
- clk_hw_register_divider_table_parent_hw(9)
- clk_hw_register_divider_table_parent_data(9)
- devm_clk_hw_register_divider(9)
- devm_clk_hw_register_divider_parent_hw(9)
- devm_clk_hw_register_divider_parent_data(9)
- devm_clk_hw_register_divider_table(9)
- struct clk_mux(9)
- struct clk_fixed_factor(9)
- devm_clk_hw_register_fixed_factor_parent_hw(9)
- struct clk_fractional_divider(9)
- struct clk_multiplier(9)
- clk_hw_get_dev(9)
like i said. everyone's here. it's a whole reunion π₯
and that's the page, bestie! π§ quick lil sign-off: this one lives over in ./include/linux, dated October 2026, and it's the clk_hw_get_of_node(9) manual page β go get that device_node, slay πππ
π¦ 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