STRUCT CLK_RATE_REQUEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct clk_rate_request(9) β€” a vibe check on the Kernel API Manual 🌸

okay so bestie, gather round πŸŽ€ this is the page for struct clk_rate_request, and it's literally the little data blob that carries around all the clock constraints a clock user might require. iykyk. it lives in the Kernel API Manual, and it's giving "tiny struct, big responsibilities" energy ✨


✨ NAME ✨

struct clk_rate_request β€” the structure that encodes the clk constraints a clock user might require. that's it, that's the whole job πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct clk_rate_request {
    struct clk_core *core;
    unsigned long rate;
    unsigned long min_rate;
    unsigned long max_rate;
    unsigned long best_parent_rate;
    struct clk_hw *best_parent_hw;
 };

look at her. six fields. no cap, absolutely iconic πŸ‘‘


πŸŽ€ Members πŸŽ€

okay so every single field, one by one, because we do NOT skip:

  • core β€” a pointer to the struct clk_core that's affected by this request. like, which clock is catching these hands 🫢
  • rate β€” the requested clock rate. heads up though: clock drivers will adjust this field according to what the hardware can actually do. so don't get too attached to your number, she's flexible 😭
  • min_rate β€” the minimum rate imposed by clk users. the floor. the bare minimum. we've all been there πŸ’€
  • max_rate β€” the maximum rate imposed by clk users. the ceiling. the limit. know your worth ✨
  • best_parent_rate β€” the best parent rate that a parent can provide to fulfill the requested constraints. basically the most helpful parent ever, no cap 🫢
  • best_parent_hw β€” the most appropriate parent clock that fulfills the requested constraints. main character parent energy fr fr πŸ‘‘

πŸ’– Description πŸ’–

bestie, listen β€” this thing should be initialized by calling clk_hw_init_rate_request. like, don't just raw-dog it and hope for the best, okay? initialize her properly πŸ™ˆ

ngl this is the whole description. short and sweet and to the point, just like a good text back πŸ’…

🌈 SEE ALSO 🌈

the friend group. the whole squad. every single one of them:

like i said. the whole squad. ate and left no crumbs πŸ”₯


and that's the page bestie!! 🧚 this little cutie came from ./include/linux, dated October 2026, and it's brought to you by the gorgeous humans behind the Kernel API Manual. mwah πŸ’œ go initialize your structs properly and slay the day πŸ‘‘βœ¨

πŸ“¦ where this page comes from