zl3073x_out_state_set(9)
π zl3073x_out_state_set(9) β the Kernel API Manual, bestie edition π
Okay so this one's from the kernel API manual (yes, the manual manual, the big serious one) and it's all about pushing your output state changes down into the actual hardware. Let's get into it β¨
πΈ NAME πΈ
zl3073x_out_state_set β the function that actually commits your output state changes to the hardware, no take-backsies π
π¦ SYNOPSIS π¦
int zl3073x_out_state_set (struct zl3073x_dev *zldev , u8 index , const
struct zl3073x_out *out );
Like, that's the whole vibe. Three args, one int back. Slay π
π ARGUMENTS π
zldevβ pointer to thezl3073x_devstructure. This is the device, the main character πindexβ which output you're setting state for. Gotta know which one, bestie π«Άoutβ the desired output state. The dream. The goal. The moment β¨
π₯ DESCRIPTION π₯
Okay so here's the whole plot, fr fr:
First up it validates that the invariant fields have not been modified β like, those fields are invariant, they're not supposed to change, so if they did, that's a vibe check fail π
Then, if the mutable configuration is literally unchanged? It skips the HW write entirely. Nothing to do, no notes, we stay home π
But if stuff did change, it writes only the changed cfg fields to hardware via the mailbox interface. Not all the fields. Just the changed ones. Efficient queen behavior π
β RETURN β
0on success β we ate, no crumbs π-EINVALif invariants changed β nope, invalid, not today π<0on HW error β hardware said no π
π SEE ALSO π
- Kernel file
./drivers/dpll/zl3073x/out.c zl3073x_out_state_fetch(9)zl3073x_out_state_get(9)
Go read those too, iykyk π§
Heads up bestie: -EINVAL means the invariants got messed with, so don't go changing stuff you're not supposed to change, okay? π
That's the whole page! π¦ Brought to you from ./drivers/dpll/zl3073x, dated October 2026, in the Kernel API Manual β mwah, love u, go commit those state changes π
π
π¦ 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