__zynqmp_clock_get_parents(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __zynqmp_clock_get_parents β€” the Kernel API Manual, but make it cute

okay so bestie, this is a kernel function from the ZynqMP clock driver (./drivers/clk/zynqmp/clkc.c), and it's literally just vibing in the kernel API manual. it's giving "lowkey important, highkey niche" πŸ’–


✨ NAME ✨

__zynqmp_clock_get_parents β€” get parents info of clock from firmware response data πŸŽ€

like, the firmware sent you a little package of parent-clock data and this function is the one that unpacks it. no cap.


🌸 SYNOPSIS 🌸

int __zynqmp_clock_get_parents (struct clock_parent *parents , struct
parents_resp *response , u32 *nparent );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • parents β€” clock parents, aka the place where the parent info is gonna live. it's a struct clock_parent *, periodt 🫢
  • response β€” clock parents data received from firmware. this is the raw tea straight from the firmware, struct parents_resp * πŸ’Œ
  • nparent β€” number of parent. literally the count of parents, u32 *, iconic 🌈

⭐ RETURN ⭐

0 on success, else error+reason 😭 β€” so if you get anything other than 0, that's your sign something went sideways and there's a reason attached.


πŸ”₯ SEE ALSO πŸ”₯

yeah so there's a whole friend group here, all chilling in the kernel file ./drivers/clk/zynqmp/clkc.c:

struct clock_parent(9), struct zynqmp_clock(9), zynqmp_is_valid_clock(9), zynqmp_get_clock_name(9), zynqmp_get_clock_type(9), zynqmp_pm_clock_get_num_clocks(9), zynqmp_pm_clock_get_name(9), zynqmp_pm_clock_get_topology(9), zynqmp_clk_register_fixed_factor(9), zynqmp_pm_clock_get_parents(9), zynqmp_pm_clock_get_attributes(9), __zynqmp_clock_get_topology(9), zynqmp_clock_get_topology(9), zynqmp_clock_get_parents(9), zynqmp_get_parent_list(9), zynqmp_register_clk_topology(9), zynqmp_register_clocks(9), zynqmp_get_clock_info(9), zynqmp_clk_setup(9)

ngl that's a whole squad πŸ’€ go read them if you want the full lore, iykyk.


lowkey reminder: this page is from the ./drivers/clk/zynqmp corner of the kernel and it's dated October 2026, so bestie, that's the version tea β€” don't come for me if your tree is different, fr fr πŸ™ˆ

stay slay, go read your kernel source πŸ’œβœ¨

πŸ“¦ where this page comes from