dwc3_ref_clk_period(9)
π dwc3_ref_clk_period π
okay so bestie, this page is literally about dwc3_ref_clk_period β the reference clock period configuration π°οΈβ¨ and yes, it's a kernel function, we're doing big brain stuff today.
so the tea is: the default reference clock period depends on your hardware configuration. periodt. but for systems whose reference clock differs from that default, this function will set the clock period in the DWC3_GUCTL register. slay π
π₯
β¨ SYNOPSIS β¨
void dwc3_ref_clk_period (struct dwc3 *dwc );
like, it returns nothing (void) and takes exactly one arg. no cap. π«Ά
π ARGUMENTS π
dwcβ pointer to our controller context structure π that's the whole vibe, she just needs the context struct and she's good to go.
π¦ SEE ALSO π¦
kernel file ./drivers/usb/dwc3/core.c β and the whole friend group of related calls, all iconic, all linked:
dwc3_get_dr_mode(9)dwc3_core_soft_reset(9)dwc3_free_one_event_buffer(9)dwc3_alloc_one_event_buffer(9)dwc3_free_event_buffers(9)dwc3_alloc_event_buffers(9)dwc3_event_buffers_setup(9)dwc3_phy_setup(9)dwc3_core_init(9)
ngl this one is short and sweet β no giant option list, no scary errors, just clock period business. a little main character moment in core.c πΈ
and that's the whole page, bestie π§π brought to you by the ./drivers/usb/dwc3 crew, from the Kernel API Manual, dated October 2026 β β mwah, go configure some clocks π
π
π¦ 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