pvr_device_clk_init(9)
π pvr_device_clk_init(9) π
okay so bestie, you're reading the Kernel API Manual page for pvr_device_clk_init, and honestly? It's giving "clock mom friend" energy. Let's get into it π
β¨ NAME β¨
pvr_device_clk_init β initialize the clocks that a PowerVR device needs to function, no cap π
π¦ SYNOPSIS π¦
int pvr_device_clk_init (struct pvr_device *pvr_dev );
πΈ ARGUMENTS πΈ
pvr_devβ the target PowerVR device, aka the main character of this whole operation π
β DESCRIPTION β
So what this does is it sets three whole struct members for you:
struct pvr_device->core_clkstruct pvr_device->sys_clkstruct pvr_device->mem_clk
Three clocks are required by the PowerVR device: core, sys, and mem β the holy trinity fr fr π
On return, this function guarantees that the clocks are in one of these exact states (like, these are the only acceptable outcomes, periodt):
- All successfully initialized β¨
- Core errored, sys and mem uninitialized π
- Core deinitialized, sys errored, mem uninitialized, or
- Core and sys deinitialized, mem errored π
π₯ RETURN π₯
0on success π- Any error returned by
devm_clk_get, or - Any error returned by
devm_clk_get_optional
π SEE ALSO π
Kernel file ./drivers/gpu/drm/imagination/pvr_device.c
And the whole friend group, in order because we do not skip anyone:
pvr_device_reg_init(9), pvr_device_process_active_queues(9), pvr_device_irq_init(9), pvr_device_irq_fini(9), pvr_build_firmware_filename(9), pvr_request_firmware(9), pvr_gpuid_decode_reg(9), pvr_gpuid_decode_string(9), enum pvr_gpu_support_level(9), pvr_load_gpu_id(9), pvr_set_dma_info(9), pvr_device_gpu_init(9), pvr_device_gpu_fini(9), pvr_device_init(9), pvr_device_fini(9), pvr_device_has_feature(9)
π«Ά tiny reminder:devm_clk_getanddevm_clk_get_optionalerrors get passed straight through, so if something's cooked, that's where the tea is π΅
π mwah, that's the page! π This one lives in ./drivers/gpu/drm/imagination (that's the source path, bestie), dated October 2026, and it's filed under pvr_device_clk_init(9) in the Kernel API Manual. Go forth and initialize those 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