__prci_wrpll_pack(9)
π __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 astruct wrpll_cfgrecord containing the PLL'scfg. 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:
__prci_readl(9)__prci_wrpll_unpack(9)__prci_wrpll_read_cfg0(9)__prci_wrpll_write_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)
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
- 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