xe_bo_notif...e_all_pinned(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_bo_notifier_prepare_all_pinned β€” a Kernel API Manual moment ✨

okay so bestie, welcome to the Kernel API Manual and today's main character is xe_bo_notifier_prepare_all_pinned(9). she's giving very much "get everything ready before the big nap" energy and honestly? iconic. πŸŽ€


✨ NAME ✨

xe_bo_notifier_prepare_all_pinned β€” pre-allocate the backing pages for all pinned VRAM objects that need to be saved. like, all of them. every single one. no cap. 🫢


🌸 SYNOPSIS 🌸

int xe_bo_notifier_prepare_all_pinned (struct xe_device *xe );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • xe β€” the xe device. that's it. that's the whole argument. she's lowkey chill like that πŸ’œ

⭐ DESCRIPTION ⭐

so here's the vibe check: you should be calling this from the PM notifier when you're preparing for s3/s4. that's the whole assignment. it goes and pre-allocates the backing pages for every pinned VRAM object that needs to be saved, so future-you doesn't have to panic about it later. preparation is self-care, periodt. πŸ’…


πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay πŸ’–
  • a negative error code on error β€” not slay, but at least it tells you 😭

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr:


ngl bestie, this one lives in ./drivers/gpu/drm/xe, dated October 2026, and the manual calls her xe_bo_notif...e_all_pinned(9) (yes the truncation is canon, we don't question it πŸ™ˆ). now go forth and pre-allocate responsibly. mwah πŸ’‹πŸŒˆ
πŸ“¦ where this page comes from