drm_gpuvm_p...h_ops_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 drm_gpuvm_prefetch_ops_create πŸ’…

okay bestie, this one comes straight out of your Kernel API Manual, so you already know it's giving "I write C for a living and I still have a personality." Let's get into it ✨


πŸ’– NAME πŸ’–

drm_gpuvm_prefetch_ops_create β€” literally creates the &drm_gpuva_ops you need to prefetch. that's the whole vibe. no notes. 🫢


⭐ SYNOPSIS ⭐

struct drm_gpuva_ops * drm_gpuvm_prefetch_ops_create (struct drm_gpuvm
*gpuvm , u64 addr , u64 range );

yes she's a pointer-returning queen, we love to see it πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • gpuvm β€” the drm_gpuvm that reps the GPU VA space. your whole address-space situation lives here πŸ’œ
  • addr β€” the start address of the range you wanna prefetch. where the party begins πŸ“
  • range β€” the range of the mappings to prefetch. how far the party goes πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this bad girl do?? she creates a list of operations to perform prefetching. that's it, that's her job, and she ate πŸ’…

you can iterate that list with drm_gpuva_for_each_op, and bestie, listen β€” it must be processed in the given order. no skipping ahead, no main character free-styling, the order is the order fr fr ⚠️

the list can contain prefetch operations, and ngl there can be an arbitrary amount of them. as many as it takes. no cap. 🌈

🚨 important bestie PSA: after you're done processing the returned drm_gpuva_ops, you must free it with drm_gpuva_ops_free. do not leave it lying around like a forgotten iced coffee. that's a memory leak and we don't do those here πŸ™ˆ

✨ RETURN ✨

a pointer to the drm_gpuva_ops on success πŸ’– β€” or an ERR_PTR on failure 😭. check it. always check it. iykyk 🧚


πŸ‘‘ SEE ALSO πŸ‘‘

the whole extended friend group, literally:


and that's the whole page bestie!! πŸ“

this icon lives in ./drivers/gpu/drm and the version on deck is October 2026 β€” so like, future-dated slay πŸ’€βœ¨ mwah, go free your ops πŸ«ΆπŸ’–

πŸ“¦ where this page comes from