__prci_wrpll_write_cfg0(9)
π
__prci_wrpll_write_cfg0(9) β like, the whole page β¨
okay so bestie, this is a page out of the Kernel API Manual (yes, that manual, the big serious one) and honestly? it's a little baddie of a function. it writes WRPLL config into the PRCI, and we're gonna walk through it together, no cap π«Ά
β¨ NAME β¨
__prci_wrpll_write_cfg0 β write WRPLL configuration into the PRCI π₯
πΈ SYNOPSIS πΈ
look at this signature, it's giving main character energy:
void __prci_wrpll_write_cfg0 (struct __prci_data *pd , struct
__prci_wrpll_data *pwd , struct wrpll_cfg *c );
returns void, takes three pointers. simple. iconic. periodt π
π ARGUMENTS π
three besties walk into a function:
pdβ the PRCI context πpwdβ the PRCI WRPLL metadata π¦cβ the WRPLL configuration record that's getting written β¨
π DESCRIPTION π
so what does it actually do? okay so:
it writes the WRPLL configuration described by c into the WRPLL configuration register identified by pwd, inside the PRCI instance described by c. yep, that's what the page says β c, not pd, don't come for me, I'm just the messenger π (iykyk)
and then β and this part is lowkey important β it makes a cached copy of the WRPLL's current configuration, so other code can use it later. thoughtful queen behavior π
π§ CONTEXT π§
any context, bestie. literally any. π
β οΈ but!!! the caller must prevent the records pointed to bypdandpwdfrom changing while this thing is executing. no switching up mid-run, that's the rule. π
π₯ SEE ALSO π₯
the whole friend group, assembled:
- kernel file
./drivers/clk/sifive/sifive-prci.c __prci_readl(9)__prci_wrpll_unpack(9)__prci_wrpll_pack(9)__prci_wrpll_read_cfg0(9)__prci_wrpll_write_cfg1(9)sifive_prci_coreclksel_use_hfclk(9)sifive_prci_coreclksel_use_corepll(9)sifive_prci_coreclksel_use_final_corepll(9)sifive_prci_corepllsel_use_dvfscorepll(9)sifive_prci_corepllsel_use_corepll(9)sifive_prci_hfpclkpllsel_use_hfclk(9)sifive_prci_hfpclkpllsel_use_hfpclkpll(9)__prci_register_clocks(9)sifive_prci_probe(9)
and that's the whole vibe check π©· this little page lives over in ./drivers/clk/sifive and it's dated October 2026 β so yeah, she's ahead of her time fr fr. go read the register, bestie, you got this πβ¨π
π¦ 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