clk_is_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ clk_is_match(9) β€” Kernel API Manual, but make it make sense ✨

okay so bestie, we're in the Kernel API Manual, and this page is literally about checking whether two clock pointers are actually the same clock. no cap, it's giving "are these two crushes the same person" energy πŸ’…

πŸ’– NAME

clk_is_match β€” check if two clk's point to the same hardware clock πŸ•°οΈβœ¨

🌸 SYNOPSIS

bool clk_is_match (const struct clk *p , const struct clk *q );

πŸ¦‹ ARGUMENTS

  • p β€” the clk compared against q πŸ‘€
  • q β€” the clk compared against p πŸ‘€

πŸ”₯ DESCRIPTION

Returns true if the two struct clk pointers both point to the same hardware clock node. Put differently β€” and this is the whole vibe β€” it returns true if p and q share the same struct clk_core object. 🫢

Returns false otherwise.

🍼 note: two NULL clks are treated as matching. yes bestie, NULL and NULL are matching here. iconic behavior, honestly.

πŸ‘‘ SEE ALSO

Kernel file ./include/linux/clk.h, plus the whole clock crew:

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_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_parent(9), clk_get_sys(9), clk_drop_range(9), clk_get_optional(9) πŸ’«


source/version: ./include/linux Β· date: October 2026 Β· page: clk_is_match(9) β€” bye bestie, drink water and check your clock pointers πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from