retract_domain(9)
π retract_domain(9) β like, the kernel API manual bestie β¨
okay so real talk, this one lives in section 9 of the kernel API manual and it's called retract_domain, and it's literally about taking the control back from the MCU. main character energy fr fr π
β¨ NAME β¨
retract_domain β Retract control of a domain from MCU π
πΈ SYNOPSIS πΈ
int retract_domain (struct panthor_device *ptdev , u32 domain );
like, that's the whole signature, no notes, she ate π
π¦ ARGUMENTS π¦
ptdevβ the Device. your fave struct, the whole device vibe check π«Άdomainβ the Domain to retract the control. yeah bestie, this one's coming back to us π₯
π DESCRIPTION π
so the tea is: retracting the L2 domain is not expected, because it won't be delegated in the first place. like, you can't take back what was never handed out, yk? π so don't be surprised, that's just how it is π
β RETURN β
0on success β or if it was retracted already, slay, either way we take the W β¨-EPERMif the domain is L2. no cap, it's a hard no π- a negative error code otherwise, because sometimes life gives you lemons π
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/panthor/panthor_pwr.c - struct
panthor_pwr(9) delegate_domain(9)panthor_pwr_domain_force_off(9)
go read those too, iykyk π
okay that's the whole page bestie, ily, go touch some registers π and this adorable little drop shipped straight out of ./drivers/gpu/drm/panthor, dated October 2026, retract_domain(9) β 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