get_dim2_clk_speed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– get_dim2_clk_speed(9) πŸ’–

okay bestie, welcome to the Kernel API Manual glow-up ✨ this one is a tiny little helper and it is lowkey iconic. We’re talking about get_dim2_clk_speed(9) β€” yes, the whole thing is about converting a string into a DIM2 clock speed value, and we are gonna get into it πŸ’….


✨ NAME ✨

get_dim2_clk_speed β€” converts string to DIM2 clock speed value πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int get_dim2_clk_speed (const char *clock_speed , u8 *val );

πŸŽ€ ARGUMENTS πŸŽ€

  • clock_speed β€” the string, and it’s in the format "{NUMBER}fs" fr fr.
  • val β€” pointer to get one of the CLK_{NUMBER}FS values 🫢.

πŸ’… DESCRIPTION πŸ’…

On success, this stores one of the CLK_{NUMBER}FS values in *val and returns 0 β€” slay ✨. Otherwise? It returns -EINVAL 😭. That’s the whole vibe: success gives you 0, bad news gives you -EINVAL.

bestie this is a yes/no situation: 0 = it worked, -EINVAL = it did not.

🌈 SEE ALSO 🌈

okay so these are the friends in the group chat, all listed exactly:


mwah πŸ’‹ this little page lives under ./drivers/staging/most/dim2, dated October 2026, and it is literally all about get_dim2_clk_speed(9) β€” periodt 🫢✨

πŸ“¦ where this page comes from