intel_dsb_reg_write_indexed(9)
π intel_dsb_reg_write_indexed β from the Kernel API Manual, section 9, bestie
Okay so picture this: you're deep in the kernel, section 9 of the Kernel API Manual, and you need to poke a register through the DSB. That's literally this function's whole job. Let's get into it π«Ά
β¨ NAME β¨
intel_dsb_reg_write_indexed β emit an indexed register write to the DSB context. That's it, that's the vibe π
πΈ SYNOPSIS πΈ
void intel_dsb_reg_write_indexed (struct intel_dsb *dsb , intel_reg_t
reg , u32 val );
Returns nothing (void), takes three things, iconic behavior honestly β¨
π¦ ARGUMENTS π¦
dsbβ the DSB context. Your main character struct πregβ the register address. Where we're writing, bestie πvalβ the value. What we're writing in there π
π DESCRIPTION π
So what this function does is write a register-value pair into the command buffer of the DSB. Like, that's the whole errand. Pair goes in, buffer holds it, slay π«
Okay but real talk β indexed writes are slower than normal MMIO writes when you're only doing a small number of writes to the same register. We're talking less than 5 or so. So if you were thinking "ooh let me index this" for like two writes to the same registerβ¦ no. Not the move. Not me letting you do that π
The 5-or-so cutoff is right there in the original for a reason β small batches to the same register = regular MMIO wins the race. Periodt π₯
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/i915/display/intel_dsb.cβ that's the home turf of this whole situation π§ DSB(9)intel_dsb_commit(9)intel_dsb_prepare(9)intel_dsb_cleanup(9)
Go read the whole little DSB friend group, they're all connected iykyk π
β cute sign-off β
That's the tea, bestie β this page lives over in ./drivers/gpu/drm/i915/display, dated October 2026, and yeah the footer still says intel_dsb_reg_write_indexed(9) because some things never change π Go write some indexed registers (but like, more than five times, please) π¦
π¦ 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