i915_gem_process_region(9)
π NAME
Okay so i915_gem_process_region is the function that lets you iterate over all the objects of a region, using ops to process them and optionally skip some objects. Itβs giving βregion-wide glow-up,β bestie. β¨
β¨ SYNOPSIS
int i915_gem_process_region (struct intel_memory_region *mr , struct
i915_gem_apply_to_region *apply );
π«Ά ARGUMENTS
mrβ the memory region, periodt. Thatβs the region weβre iterating over.applyβ theopsand private data, all bundled up together. Main character energy for the processing part. π
π DESCRIPTION
So picture this: youβve got a region, and you wanna iterate over its object list. This function is literally here for that. It checks whether to skip objects, and if not, it locks the objects and processes them using the supplied ops. Obsessed. π
Heads up, bestie: this function temporarily removes objects from the region list while itβs iterating. So if you run it concurrently with itself, it may not iterate over all the objects. Thatβs the caveat β fr fr. π
β RETURN
It returns 0 if successful. On failure? A negative error code. No cap. π
π SEE ALSO
- Kernel file
./drivers/gpu/drm/i915/gem/i915_gem_region.cβ go peek at the source, iykyk. π¦
Mwah π β this page came from ./drivers/gpu/drm/i915/gem, dated October 2026. Slay. π
π¦ 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