xe_bo_pinned_init(9)
π xe_bo_pinned_init(9) β like, the Kernel API Manual, bestie β¨
okay so real talk, this page is called xe_bo_pinned_init(9) and it lives in the Kernel API Manual, and it's genuinely just about setting up pinned bo tracking. That's it. That's the vibe. π
πΈ NAME πΈ
xe_bo_pinned_init β Initialize pinned bo tracking π«Ά
β¨ SYNOPSIS β¨
int xe_bo_pinned_init (struct xe_device *xe );
π¦ ARGUMENTS π¦
xeβ The xe device. That's the one. The main character. π
π DESCRIPTION π
So basically this function initializes the lists and locks required for pinned bo tracking β the whole scaffolding, the organizational era, the structure of it all. ποΈ
And then, because it's an overachiever, it also registers a callback to dma-unmap any remaining pinned bos on pci device removal. Like, cleaning up after the party even if the party ends abruptly. no cap. π
π₯ RETURN π₯
0on success π- negative error code on error π (yes, that's the whole mood β if it's not
0, it's negative, and it's bad news)
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_bo_evict.cβ go read the source, iykyk π xe_bo_notifier_prepare_all_pinned(9)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)
^ literally the whole friend group, go say hi to all of them π
ok bestie quick recap π§: it sets up the lists + locks for pinned bo tracking, registers that dma-unmap callback for pci device removal, returns 0 when it slays and a negative error code when it does not. periodt. π
and that's the whole page!! mwah π
soooo for the sign-off β this one came from ./drivers/gpu/drm/xe, dated October 2026, and it's page xe_bo_pinned_init(9) of the Kernel API Manual. obsessively sourced, as always. πβ¨
π¦ 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