xe_bo_notif...e_all_pinned(9)
π 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 π₯
0on success β slay π- a negative error code on error β not slay, but at least it tells you π
π SEE ALSO π
the whole friend group, fr fr:
- Kernel file
./drivers/gpu/drm/xe/xe_bo_evict.c xe_bo_notifier_unprepare_all_pinned(9)xe_bo_evict_all_user(9)xe_bo_evict_all(9)xe_bo_restore_early(9)xe_bo_restore_late(9)xe_bo_pci_dev_remove_all(9)xe_bo_pinned_init(9)
ngl bestie, this one lives in./drivers/gpu/drm/xe, dated October 2026, and the manual calls herxe_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
- 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