xe_bo_is_stolen_devmem(9)
π xe_bo_is_stolen_devmem(9) β a Kernel API Manual moment
okay so this is a page from the Kernel API Manual, and it's about the very iconic xe_bo_is_stolen_devmem β¨
πΈ NAME πΈ
xe_bo_is_stolen_devmem β bestie, this one checks whether a BO is the stolen type, aka the kind you get to through the PCI BAR π
β¨ SYNOPSIS β¨
bool xe_bo_is_stolen_devmem (struct xe_bo *bo );
like, it takes a BO and hands you back a bool. that's it, that's the whole vibe π¦
π«Ά ARGUMENTS π«Ά
boβ The BO. literally the buffer object we're doing a vibe check on π
π DESCRIPTION π
so here's the tea β: stolen memory gets accessed through the PCI BAR β and that's true for both DGFX and for some integrated platforms that have a dedicated bit in the PTE for devmem (DM). no cap, that's the whole mechanic π
β RETURN β
it gives you true if it's stolen memory accessed via PCI BAR, and false otherwise. simple as that, periodt π
π₯ SEE ALSO π₯
the kernel file is ./drivers/gpu/drm/xe/xe_bo.c, and honestly the whole friend group is here β go say hi π
xe_bo_has_single_placement(9)xe_bo_is_vm_bound(9)xe_bo_pin_account(9)xe_bo_unpin_account(9)xe_bo_is_visible_vram(9)xe_bo_move_notify(9)xe_bo_set_purgeable_shrinker(9)xe_bo_set_purgeable_state(9)xe_ttm_bo_purge(9)xe_bo_shrink(9)xe_bo_notifier_prepare_pinned(9)xe_bo_notifier_unprepare_pinned(9)xe_bo_evict_pinned(9)xe_bo_restore_pinned(9)xe_bo_read(9)xe_bo_alloc(9)xe_bo_free(9)xe_bo_init_locked(9)xe_bo_create_locked(9)xe_bo_create_user(9)xe_bo_create_pin_range_novm(9)xe_bo_create_pin_map_at_novm(9)xe_bo_create_pin_map(9)xe_bo_create_pin_map_novm(9)xe_managed_bo_reinit_in_vram(9)xe_bo_pin_external(9)xe_bo_pin(9)xe_bo_unpin_external(9)xe_bo_validate(9)xe_bo_decompress(9)xe_bo_lock(9)xe_bo_unlock(9)xe_bo_can_migrate(9)xe_bo_migrate(9)xe_bo_evict(9)xe_bo_needs_ccs_pages(9)__xe_bo_release_dummy(9)xe_bo_put_commit(9)xe_bo_dev_init(9)xe_bo_dev_fini(9)xe_bo_dumb_create(9)
ngl, that's a lot of cross-references, but every single one is real and every single one matters. no skipping, bestie π
so yeah, this page lives under ./drivers/gpu/drm/xe, it's from October 2026, and it ships with the Kernel API Manual β mwah, go read the source, ily, bye ππ§ββοΈ
π¦ 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