drm_gpuva_for_each_op_safe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gpuva_for_each_op_safe(9) πŸ’…

okay bestie, so this is a page from the Kernel API Manual (yes, the Kernel API Manual, we're in the big leagues now ✨) and it's all about drm_gpuva_for_each_op_safe β€” your new fave iterator for strolling over &drm_gpuva_ops. Let's get into it πŸŽ€


✨ NAME ✨

drm_gpuva_for_each_op_safe β€” an iterator that safely walks over &drm_gpuva_ops 🫢 (yes, "safe" is literally in the name, she's telling you something)


🌸 SYNOPSIS 🌸

drm_gpuva_for_each_op_safe (op , next , ops );

πŸ’– ARGUMENTS πŸ’–

  • op β€” the drm_gpuva_op you assign on every single iteration step. she's the main character of each loop turn πŸ‘‘
  • next β€” the next drm_gpuva_op, where you stash the upcoming step so you don't lose your place πŸ’«
  • ops β€” the drm_gpuva_ops you're walking through. the whole lineup, the whole squad 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: this iterator walks over all the ops inside a given list of operations. literally all of them, no skipping πŸ’…

and the way it's built? it's implemented with list_for_each_safe, which means it's safe against removal of elements β€” so if something gets yeeted out of the list mid-walk, you're not gonna crash and burn 😭 it's giving self-care, it's giving protection, it's giving iconic iterator behaviour. periodt.


πŸ”₯ SEE ALSO πŸ”₯

everything else in the family, bestie β€” go read these too:

Kernel file ./include/drm/drm_gpuvm.h


πŸ’« and that's the whole page, bestie πŸ’«

this lil legend lives in ./include/drm and the version we're looking at is dated October 2026 β€” so yeah, future-coded of her πŸ’œ catch you on the next manpage, mwah πŸ“πŸ§š

πŸ“¦ where this page comes from