xe_force_wake_assert_held(9)
π xe_force_wake_assert_held β the vibe check for your forcewake domain
okay so bestie, welcome to the Kernel API Manual entry for xe_force_wake_assert_held, and honestly? it's giving "one job, and it does it." let me explain π«Ά
β¨ NAME β¨
xe_force_wake_assert_held β asserts domain is awake π€β‘οΈπ
π¦ SYNOPSIS π¦
void xe_force_wake_assert_held (struct xe_force_wake *fw , enum
xe_force_wake_domains domain );
that's it. that's the whole flex. no return value, no drama, just vibes and an assertion. periodt. π
π ARGUMENTS π
fwβ yourxe_force_wakestructure, the main character of this whole situation πdomainβ anxe_force_wake_domainsvalue, and listen, it has to be apart fromXE_FORCEWAKE_ALL. one domain only, no bundling, we don't do combo deals here π
πΈ DESCRIPTION πΈ
so xe_force_wake_assert_held is literally designed to confirm that one particular forcewake domain is awake. that's the whole assignment. it checks a single domain's wakefulness, and it does not verify the wakefulness of multiple domains β not its job, not its problem, not today π
which brings us to the big rule: make sure the caller doesn't input multiple domains (XE_FORCEWAKE_ALL) as a parameter. like, fr fr, don't do it. this function is for one domain, bestie. give it one domain. it will slay. give it XE_FORCEWAKE_ALL and you're just setting yourself up π
β οΈ heads up: XE_FORCEWAKE_ALL is not a valid parameter here β the function is only built to assert a single domain, not a whole set of them. keep it singular, keep it cute. β¨
π₯ SEE ALSO π₯
- the kernel file
./drivers/gpu/drm/xe/xe_force_wake.hβ go read it, it's iconic π xe_force_wake_ref_has_domain(9)β the sibling function, also very much worth your time π§
π a little sign-off π
this page lives over in ./drivers/gpu/drm/xe, it's dated October 2026, and it's officially page xe_force_wake_assert_held(9) of the Kernel API Manual. ok that's the whole thing, love u, go assert some domains πβ¨π
π¦ 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