vmw_bo_pin_in_vram(9)
π NAME π
okay bestie, this is vmw_bo_pin_in_vram(9) from the Kernel API Manual β and the whole function is literally just Move a buffer to vram. β¨ Slay.
β¨ SYNOPSIS β¨
no cap, hereβs the signature exactly as it is β donβt let the line break jump-scare you:
int vmw_bo_pin_in_vram (struct vmw_private *dev_priv , struct vmw_bo
*buf , bool interruptible );
π ARGUMENTS π
dev_privβ Driver private. (the driverβs private data, periodt)bufβ DMA buffer to move. (the actual buffer, bestie)interruptibleβ Use interruptible wait. (yes, that exact mode π)
π¦ DESCRIPTION π¦
This function takes the reservation_sem in write mode. Then it flushes and unpins the query bo to avoid failures.
Thatβs the whole vibe check: write-mode reservation_sem, flush + unpin the query bo, no failures please ππ
π RETURN π
Zero on success, Negative error code on failure. In particular -ERESTARTSYS if interrupted by a signal.
So if you get a negative number, thatβs the failure branch β and if a signal interrupts you, expect -ERESTARTSYS. π
π₯ SEE ALSO π₯
- 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_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_bo_unref_ioctl(9)vmw_user_bo_lookup(9)vmw_bo_fence_single(9)vmw_bo_swap_notify(9)vmw_bo_move_notify(9)
mwah π cute sign-off: source/version is ./drivers/gpu/drm/vmwgfx, and the date is October 2026. bye bestie, go pin that buffer π«Ά
π¦ 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