zynqmp_clk_register_gate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… zynqmp_clk_register_gate(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a lil function from the ZynqMP clock corner of the kernel, and she's literally the girl who introduces a gate clock to the clock framework. like, she does the networking, she makes the introduction, she slays πŸŽ€


🌸 NAME 🌸

zynqmp_clk_register_gate β€” Register a gate clock with the clock framework

no cap, that's the whole job description 🫢


✨ SYNOPSIS ✨

struct clk_hw * zynqmp_clk_register_gate (const char *name , u32 clk_id
, const char * const *parents , u8 num_parents , const struct
clock_topology *nodes );

she returns a struct clk_hw *, she takes five lil arguments, and yes you're gonna read them all, it's giving thorough πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • name β€” Name of this clock. this is her government name, the one the framework knows her by πŸ’–
  • clk_id β€” Id of this clock. her numeric id, like a student ID but for clocks πŸŽ€
  • parents β€” Name of this clock's parents. yep, plural, she can have multiple parents, it's very modern family of them 🌈
  • num_parents β€” Number of parents. how many names are actually in that parents list, so the kernel doesn't go guessing πŸ™ˆ
  • nodes β€” Clock topology node. the struct clock_topology situation that describes where she sits in the whole tree 🌸

⭐ RETURN ⭐

clock hardware of the registered clock gate β€” a struct clk_hw *, freshly registered and ready to be enabled and disabled, main character energy πŸ‘‘

lowkey important: that's the return value, don't just toss it, the clock framework's gonna want it back 🫢

🧚 SEE ALSO 🧚

  • Kernel file ./drivers/clk/zynqmp/clk-gate-zynqmp.c β€” literally the source, go read her origin story πŸ’œ
  • struct zynqmp_clk_gate(9) β€” the struct herself ✨
  • zynqmp_clk_gate_enable(9) β€” turning things on, iconic πŸ”₯
  • zynqmp_clk_gate_is_enabled(9) β€” the vibe check, is it on or not πŸ’€

that's the whole page bestie, no filler, all facts, ate and left no crumbs πŸ“

source/version: ./drivers/clk/zynqmp Β· date: October 2026 Β· manual: zynqmp_clk_register_gate(9) β€” mwah, see u in the group chat πŸ’•πŸ¦‹

πŸ“¦ where this page comes from