mpc5xxx_fwno...us_frequency(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mpc5xxx_fwnode_get_bus_frequency(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the kernel, you've got a firmware node in your hands, and you just need to know how fast the bus is running. that's literally this function. no cap. she's the one who knows the clock tea ✨


🌸 NAME 🌸

mpc5xxx_fwnode_get_bus_frequency β€” find the bus frequency for a firmware node πŸ¦‹

like, the whole entire job. one node in, one frequency out. iconic behavior honestly πŸ’œ


✨ SYNOPSIS ✨

unsigned long mpc5xxx_fwnode_get_bus_frequency (struct fwnode_handle *fwnode );

she takes one (1) argument and returns an unsigned long. that's it. that's the vibe. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” firmware node πŸ’«

that's the one and only thing you hand her. the firmware node. give her the node and she'll do the rest, periodt.


πŸ‘‘ DESCRIPTION πŸ‘‘

Returns the bus frequency β€” that's IPS on MPC512x and IPB on MPC52xx, just so we're clear on which name goes with which chip, iykyk πŸ’… β€” or 0 if the bus frequency cannot be found. 😭

so like, two outcomes bestie: you get a real frequency back, or you get a big fat zero meaning "nope, couldn't find it". no in-between, no drama, no guessing. 0 is the "she said she doesn't know" answer and you just have to respect it πŸ™ˆ

ngl, always check for that 0, because a zero frequency is not a frequency, it's a cry for help πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./arch/powerpc/sysdev/mpc5xxx_clocks.c β€” go read the source, she's right there, slay πŸ”₯


that's the whole page, bestie β€” short, sweet, and every bit as useful as the original πŸ“

kisses, and remember: the source lives in ./arch/powerpc/sysdev, dated October 2026, brought to you by the fine folks in ./arch/powerpc/sysdev β€” mwah πŸ’‹πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from