xe_mmio_wait32_not(9)
π xe_mmio_wait32_not(9) β the kernel API manual, bestie edition π
okay so real talk, this is a page from the Kernel API Manual and it's about one very specific little function that will wait around for a register to stop being a certain vibe. sit down, get a snack, we're learning π
β¨ NAME β¨
xe_mmio_wait32_not β literally just: wait for a register to return anything other than the given masked value. that's it. that's the whole job. she's a "not equal to" girlie π
π SYNOPSIS π
int xe_mmio_wait32_not (struct xe_mmio *mmio , struct xe_reg reg , u32
mask , u32 val , u32 timeout_us , u32 *out_val , bool atomic );
that's the whole signature, no cap. seven parameters, one int back. write it exactly like that or the compiler will simply end you π
π¦ ARGUMENTS π¦
okay bestie, let's do the roll call, one by one, nobody gets skipped:
mmioβ the MMIO target π this is where we're poking, mmkay?regβ the register to read value from. the actual spot we're watching like it's a reality show πΈmaskβ mask to be applied to the value read from the register. we're filtering, we're selecting, we're doing a little bitwise moment β¨valβ the value not to be matched, after applying the mask. so like, if it does match this, we keep waiting. we do NOT want this one πtimeout_usβ time out after this period of time. yeah. she's got a deadline and she will enforce it β°out_valβ if notNULL, points where to store the last unmasked value. so you can peep what the register was actually saying at the end πatomicβ needs to betrueif calling from an atomic context. absolutely non-negotiable, do not lie to her about this one π
π DESCRIPTION π
so here's the tea: this function works exactly like xe_mmio_wait32, with the one (1) exception that val is expected not to be matched.
that's the entire plot twist. same energy, same behaviour, just inverted on the match. the way that one flipped condition changes everything, honestly iconic π₯
π SEE ALSO π
like, go read these next, i'm begging π«Ά:
- Kernel file
./drivers/gpu/drm/xe/xe_mmio.c xe_mmio_probe_tiles(9)xe_mmio_probe_early(9)xe_mmio_init(9)xe_mmio_read64_2x32(9)xe_mmio_wait32(9)β the sibling she's copying homework fromxe_mmio_init_vf_view(9)
and that's the whole page, bestie, you ate that π this came to you from ./drivers/gpu/drm/xe, dated October 2026, and she answers to the name xe_mmio_wait32_not(9) πβ¨π¦
π¦ 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