vmw_bo_unref_ioctl(9)
π vmw_bo_unref_ioctl π
okay bestie, so we're in the Kernel API Manual today and the star of the show is vmw_bo_unref_ioctl(9) β literally the generic handle close ioctl π like, she closes handles, that's her whole job, and she does it iconically.
β¨ SYNOPSIS β¨
int vmw_bo_unref_ioctl (struct drm_device *dev , void *data , struct
drm_file *file_priv );
that's the whole signature, no cap β three args, one int coming back at you π«Ά
πΈ ARGUMENTS πΈ
devβ this one Identifies the drm device π like, which drm device are we even talking about? this is your answer.dataβ a Pointer to the ioctl argument. yes,void *, yes, it's giving mystery box πfile_privβ Identifies the caller. it's literally "who dis" but for the ioctl π
β RETURN β
Zero on success π negative error code on error π β that's it, that's the whole vibe check.
π¦ DESCRIPTION π¦
so what does she do? okay so β this function checks the ioctl arguments for validity (yes, she's doing the vibe check first, as she should π ) and then closes a handle to a TTM base object, and optionally frees the object. optionally!! she's flexible like that β¨
the "optionally freeing" part is doing a lot of heavy lifting in that sentence and ngl you should read it twice π
π SEE ALSO π
the whole friend group, fr fr β they're all chillin' in the Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_bo.c:
vmw_bo_free(9)vmw_bo_pin_in_placement(9)vmw_bo_pin_in_vram_or_gmr(9)vmw_bo_pin_in_vram(9)vmw_bo_pin_in_start_of_vram(9)vmw_bo_unpin(9)vmw_bo_get_guest_ptr(9)vmw_bo_pin_reserved(9)vmw_bo_map_and_cache(9)vmw_bo_unmap(9)vmw_bo_init(9)vmw_user_bo_synccpu_grab(9)vmw_user_bo_synccpu_release(9)vmw_user_bo_synccpu_ioctl(9)vmw_user_bo_lookup(9)vmw_bo_fence_single(9)vmw_bo_swap_notify(9)vmw_bo_move_notify(9)
and that's the page!! π§π before you go β this lil beauty lives in ./drivers/gpu/drm/vmwgfx and she's stamped October 2026, so jot that down bestie π bye, ily, go close some handles responsibly π«Άπ
π¦ 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