to_pvr_queue_job_fence(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual π β this page is all about to_pvr_queue_job_fence(9), and honestly? it's giving "little helper that knows exactly who's who at the party." π¦
to_pvr_queue_job_fence β Return a pvr_queue_fence object if the fence is already backed by a UFO. π½β¨
β¨ SYNOPSIS β¨
struct pvr_queue_fence * to_pvr_queue_job_fence (struct dma_fence *f );
πΈ ARGUMENTS πΈ
fβ thedma_fenceyou wanna turn into apvr_queue_fence. that's the whole input, bestie, no hidden extras π
π DESCRIPTION π
so like, this function could be called on a few different things, and it handles each one differently depending on the vibe check it gets π
- a job fence, directly β in which case it simply returns the containing
pvr_queue_fence. easy, no cap, it just hands you the thing π«Ά - a
drm_sched_fence's scheduled or finished fence β in which case it will first try to follow the parent pointer to find the job fence. β οΈ important caveat, bestie: note that the parent pointer is initialized only after therun_jobcallback is called on thedrm_sched_fence's owning job. so like, timing matters, fr fr π - any other
dma_fenceβ in which case it will returnNULL. not every fence is main character energy, and that's fine π
π₯ RETURN π₯
- A non-
NULLpvr_queue_fenceobject if thedma_fenceis backed by a UFO π½, or NULLotherwise π
β SEE ALSO β
Kernel file ./drivers/gpu/drm/imagination/pvr_queue.c β that's the spot, iykyk πΊοΈ
and the whole squad, in order, exactly as listed:
pvr_queue_fence_is_ufo_backed(9)pvr_queue_fence_put(9)pvr_queue_fence_alloc(9)pvr_queue_fence_init(9)pvr_queue_cccb_fence_init(9)pvr_queue_job_fence_init(9)pvr_queue_fence_ctx_init(9)job_count_remaining_native_deps(9)pvr_queue_get_job_cccb_fence(9)pvr_queue_get_job_kccb_fence(9)pvr_queue_prepare_job(9)pvr_queue_update_active_state_locked(9)pvr_queue_update_active_state(9)pvr_queue_run_job(9)pvr_queue_timedout_job(9)pvr_queue_free_job(9)pvr_queue_fence_is_native(9)pvr_queue_signal_done_fences(9)pvr_queue_check_job_waiting_for_cccb_space(9)pvr_queue_process(9)init_fw_context(9)pvr_queue_cleanup_fw_context(9)pvr_queue_job_init(9)pvr_queue_job_arm(9)pvr_queue_job_cleanup(9)pvr_queue_job_push(9)pvr_queue_create(9)pvr_queue_kill(9)pvr_queue_destroy(9)pvr_queue_device_init(9)pvr_queue_device_fini(9)
and that's the page, babes π it lives under./drivers/gpu/drm/imagination, it's dated October 2026, and it's literally titledto_pvr_queue_job_fence(9)π go read the source, slay, periodt β¨π§
π¦ 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