vmw_translate_mob_ptr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

vmw_translate_mob_ptr(9) is serving Kernel API Manual energy, bestie: this one is here to prepare to translate a user-space buffer handle to a MOB id. It's giving prep, not the translation itself β€” more on that below 😌✨

✨ SYNOPSIS ✨

int vmw_translate_mob_ptr (struct vmw_private *dev_priv , struct
       vmw_sw_context *sw_context , SVGAMobId *id , struct vmw_bo **vmw_bo_p );

🫢 ARGUMENTS 🫢

  • dev_priv β€” Pointer to a device private structure. Classic device-private moment.
  • sw_context β€” The software context used for this command batch validation. Validation HQ for this batch, basically.
  • id β€” Pointer to the user-space handle to be translated. Pointy pointy.
  • vmw_bo_p β€” Points to a location that, on successful return, will carry a non-reference-counted pointer to the buffer object identified by the user-space handle in id. Key words: on successful return, and non-reference-counted.

🌸 DESCRIPTION 🌸

Okay so this function saves information needed to translate a user-space buffer handle to a MOB id. The translation does not take place immediately, bestie β€” it happens during a call to vmw_apply_relocations. β³πŸ’…

This function builds a relocation list and a list of buffers to validate. The former needs to be freed using either vmw_apply_relocations or vmw_free_relocations. The latter needs to be freed using vmw_clear_validations. Cleanup order matters, iykyk 🧹✨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c β€” and the full guest list is:


With so much love from the ./drivers/gpu/drm/vmwgfx source/version spot, dated October 2026, closing out the vmw_translate_mob_ptr(9) page β€” bye bestie! πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from