__prci_wrpll_pack(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __prci_wrpll_pack(9) πŸ’–

okay so bestie, this page is from the Kernel API Manual and it's all about one lil function that packs up your WRPLL config into a register value. it's giving kernel-clock realness, fr fr. 🌸

✨ NAME ✨

__prci_wrpll_pack β€” pack PLL configuration parameters into a register value πŸ’…

πŸ’« SYNOPSIS πŸ’«

u32 __prci_wrpll_pack (const struct wrpll_cfg *c );

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” pointer to a struct wrpll_cfg record containing the PLL's cfg. this pointer is lowkey the main character here, no cap. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Using a set of WRPLL configuration values pointed to by c, this function assembles a PRCI PLL configuration register value and returns it to the caller. literally the whole glow-up: config goes in, register value comes out. ✨

🌈 CONTEXT 🌈

Any context. 🫢

bestie, the caller must ensure that the contents of the record pointed to by c do not change during the execution of this function. like, do not let it shift mid-function, okay? 😭

πŸ‘‘ RETURN πŸ‘‘

a value suitable for writing into a PRCI PLL configuration register. periodt. πŸ’…

🧚 SEE ALSO 🧚

Kernel file ./drivers/clk/sifive/sifive-prci.c plus these iconique functions:

mwah πŸ’‹ β€” source/version is ./drivers/clk/sifive, dated October 2026, and this was the __prci_wrpll_pack(9) page. byeee bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from