xe_bo_pin(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so welcome to xe_bo_pin(9) from the Kernel API Manual. The name is literally xe_bo_pin β€” Pin a kernel bo after potentially migrating it. Bestie, the whole vibe is migration first, pin second if it succeeds. πŸ’…βœ¨

✨ SYNOPSIS ✨

The signature is giving:

int xe_bo_pin (struct xe_bo *bo , struct drm_exec *exec );

πŸŽ€ ARGUMENTS πŸŽ€

  • bo β€” the kernel bo you're pinning. 🫢
  • exec β€” the drm_exec transaction to use for exhaustive eviction. No cap.

🌸 DESCRIPTION 🌸

It attempts to migrate a bo to bo->placement. If that succeeds, it pins the bo. That's the plot, bestie β€” migration success unlocks the pin. πŸ”₯

πŸ¦‹ RETURN πŸ¦‹

0 on success, negative error code on migration failure. So: happy little 0 when it works, sad negative number when migration flops. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/xe/xe_bo.c β€” and the whole see-also group chat, all here, no skips:


✨ mwah! ✨ source/version: ./drivers/gpu/drm/xe Β· date: October 2026 Β· page: xe_bo_pin(9) πŸ’‹

πŸ“¦ where this page comes from