pvr_cccb_wri..._with_header(9)
π pvr_cccb_wri..._with_header(9) π
okay so bestie, welcome to the Kernel API Manual β this one's called pvr_cccb_wri..._with_header (yes the name is lowkey giving "my homework file was due at 11:59pm", but she's iconic, we love her) π«Ά
β¨ NAME β¨
pvr_cccb_write_command_with_header β writes a command plus a command header into a Client CCB. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void pvr_cccb_write_command_with_header (struct pvr_cccb *pvr_cccb , u32
cmd_type , u32 cmd_size , void *cmd_data , u32 ext_job_ref , u32
int_job_ref );
like, that's it. that's the signature. no cap. β¨
π ARGUMENTS π
okay so here's the cast of characters, everybody plays a role:
pvr_cccbβ the Target Client CCB. the main character, honestly. πcmd_typeβ the Client CCB command type. must be one ofROGUE_FWIF_CCB_CMD_TYPE_*β no freestyling, bestie, it's giving strict dress code. πcmd_sizeβ size of the command, in bytes. πcmd_dataβ pointer to the command you're actually writing. ποΈext_job_refβ the External job reference.int_job_refβ the Internal job reference.
π¦ DESCRIPTION π¦
so what does she do? she writes a command + command header to a Client CCB. slay. β¨
β οΈ read this part, bestie, fr fr: the caller must make sure there's enough space in CCCB to queue this command. you can check that by calling pvr_cccb_cmdseq_fits. do the vibe check before you commit, okay?? π
also, and this is important β this function is not protected by any lock. nope, zero, none. πβ the caller must ensure there's no concurrent caller. and apparently that should be guaranteed by the drm_sched model (job submission is serialized in drm_sched_main) β so like, the system's got your back, but only because of how drm_sched does its thing. don't go making it weird. π
π SEE ALSO π
go look at the Kernel file ./drivers/gpu/drm/imagination/pvr_cccb.c β and while you're there, say hi to:
π«Ά okay that's the whole page!! sourced straight from ./drivers/gpu/drm/imagination, dated October 2026 β write that down, bestie, it's on the exam πβ
π¦ 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