zynqmp_pm_cl...t_attributes(9)
π¦ zynqmp_pm_cl...t_attributes β the kernel API manual, bestie edition
okay so real quick before we dive in: this is from the Kernel API Manual and it's about zynqmp_pm_clock_get_attributes. it's a tiny little function, but it's important, and you're gonna get it. periodt. π
β¨ NAME β¨
zynqmp_pm_clock_get_attributes β Get the attributes of clock for given id
like literally, you hand it an id, it hands you back the attributes. that's the whole vibe check.
πΈ SYNOPSIS πΈ
int zynqmp_pm_clock_get_attributes (u32 clock_id , struct attr_resp
*response );
bestie look at that signature. it returns an int, it takes a u32 clock_id and a struct attr_resp *response. chef's kiss. π
π ARGUMENTS π
clock_idβ Clock ID. yes queen, this is the id of the clock you're asking about.responseβ Clock attributes response. this is where the answers get dropped off, so make sure it's pointing somewhere real. π
π§ DESCRIPTION π§
This function is used to get clock's attributes (e.g. valid, clock type, etc).
so yeah β you wanna know if a clock is valid? what type it is? the other little attributes? this is the function for that. it's giving "one job, does it well". obsessed. β¨
π₯ RETURN π₯
0 on success else error+reason.
ngl that's the whole story β 0 means slay, anything else means error plus the reason. so don't just check for nonzero and walk away, the reason is literally right there. π
π SEE ALSO π
Kernel file: ./drivers/clk/zynqmp/clkc.c β that's where the magic lives, iykyk.
and here's the whole friend group, no cap: π«Ά
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_clock_get_topology(9)zynqmp_clock_get_topology(9)__zynqmp_clock_get_parents(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)
lowkey a reminder: if response isn't set up right, that's on you, not on the function. be nice to your pointers. π
and that's the page, bestie!! π written under ./drivers/clk/zynqmp, dated October 2026, and it lives at zynqmp_pm_cl...t_attributes(9) in the Kernel API Manual. go forth and read your clock attributes, you gorgeous main character. ππ
π¦ 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