i915_gem_obj...to_wc_domain(9)
π i915_gem_obj...to_wc_domain(9) π
okay so bestie, welcome to the Kernel API Manual π (yes, that's the manual name, it's giving very "the docs are the main character energy"). today we're learning about one very specific little function and honestly? she's iconic, she's niche, she does exactly one thing and she does it well. β¨
πΈ NAME πΈ
i915_gem_object_set_to_wc_domain β moves a single object to the WC read, and possibly write domain.
like. one object. one domain. no cap, that's the whole vibe. π«
π¦ SYNOPSIS π¦
int i915_gem_object_set_to_wc_domain (struct drm_i915_gem_object *obj ,
bool write );
she takes a struct drm_i915_gem_object *obj and a bool write, and she returns an int. that's her whole signature. slay. π
π ARGUMENTS π
objβ the object we're acting on π«Ά like, this is the actual thing being moved. the star of the show.writeβ are we asking for write access, or is this a read-only situation? π₯ you literally just tell her which one.
β DESCRIPTION β
so here's the tea β: this function returns when the move is complete, and that includes waiting on flushes to occur. π
translation? she does not come back early. she does not do "eh, close enough." she waits. she flushes. she returns. periodt. πβ¨
π SEE ALSO π
- the kernel file
./drivers/gpu/drm/i915/gem/i915_gem_domain.cβ go read the source, iykyk π§ i915_gem_object_set_to_gtt_domain(9)i915_gem_object_set_cache_level(9)i915_gem_object_set_to_cpu_domain(9)i915_gem_set_domain_ioctl(9)
her whole friend group fr fr π all the domain-setting besties, linked up together.
π«Ά friendly reminder: this page is specifically about the WC read (and maybe write) domain move. if you're looking for a different domain, check the SEE ALSO list above before you come for her.
okay that's the whole page, bestie, you ate that π now go forth and set some domains. this little gem lives over in ./drivers/gpu/drm/i915/gem and the docs are dated October 2026 β so like, future vibes only. πΈπ¦β see you in the next manpage!! ππ
π¦ 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