i915_gem_process_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the ops and 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