xe_bo_move_notify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_bo_move_notify(9) β€” Kernel API Manual, bestie edition

Okay so real quick, this page lives in the Kernel API Manual and it's literally all about telling everybody "hey, this buffer's about to move" before it actually does. Let's get into it 🫢


✨ NAME ✨

xe_bo_move_notify β€” notify subsystems of a pending move

Like, a heads-up text in the group chat before you start moving furniture, y'know?


πŸ¦‹ SYNOPSIS πŸ¦‹

int xe_bo_move_notify (struct xe_bo *bo , const struct ttm_operation_ctx
*ctx );

🌸 ARGUMENTS 🌸

  • bo β€” the buffer object in question, the main character of this whole operation πŸ’–
  • ctx β€” the struct ttm_operation_ctx that's controlling locking and waits. It's giving "adult supervision" energy ngl.

πŸ‘‘ DESCRIPTION πŸ‘‘

So this function notifies subsystems that a buffer move is coming up. Like, upcoming, not happening right now. Rude to not warn a girl first, honestly.

When a subsystem gets this notification, it should schedule halting access to the underlying pages β€” and it optionally can add a fence to the buffer object's dma_resv object, which signals when access is stopped. Slay, that's how you communicate boundaries ✨

The caller will wait on all dma_resv fences before starting the move. No cutting the line, no skipping the wait, no cap.

A subsystem may commence access to the object after obtaining bindings to the new backing memory under the object lock. So like, you get the keys to the new place first, then you can start moving your stuff in. Periodt. πŸ”‘


πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” ate, no notes πŸ’…
  • -EINTR or -ERESTARTSYS if interrupted in fault mode β€” like getting a call mid-nap 😭
  • a negative error code on error β€” yeah, that's the "it's giving problems" case πŸ’€

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/gpu/drm/xe/xe_bo.c and, honestly, the whole extended friend group:


okay that's the whole page, you're officially smarter than you were three minutes ago, i'm so proud of you bestie πŸ§šπŸ’–

Oh and for the record β€” this one's from ./drivers/gpu/drm/xe, dated October 2026, and yes the date is in the future, don't ask, we don't question the timeline here ⭐

πŸ“¦ where this page comes from