xe_bo_read(9)
π xe_bo_read β the Kernel API Manual moment π
okay so this is xe_bo_read(9) from the Kernel API Manual, and honestly? it's giving "tiny function, main character energy" β¨ buckle up bestie, we're reading from a buffer object π
πΈ NAME πΈ
xe_bo_read β literally just: read from an xe_bo. that's it. that's the whole vibe π
β¨ SYNOPSIS β¨
int xe_bo_read (struct xe_bo *bo , u64 offset , void *dst , int size );
like. look at her. four args, returns an int, no notes π
π¦ ARGUMENTS π¦
boβ the buffer object we're reading from, the whole reason we're here froffsetβ the byte offset where the reading starts, like where u drop the needle on the record π΅dstβ the location where the read gets stored, aka the destination, aka where the data goes to live its best lifesizeβ size in bytes for the read, no cap, exact byte count
π DESCRIPTION π
so the way that this works is: read size bytes from the bo, starting from offset, and store them into dst. that's the whole plot π«Ά lowkey iconic, highkey simple, and we love a straightforward queen π
π RETURN π
- Zero on success π (slay)
- negative error β not slay π that's your signal something went sideways
π§ SEE ALSO π§
the kernel file lives at ./drivers/gpu/drm/xe/xe_bo.c β go say hi bestie π and here's the whole friend group, in order, no one left out:
xe_bo_has_single_placement(9)xe_bo_is_stolen_devmem(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_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)
ok real talk: this page is from the./drivers/gpu/drm/xesection, dated October 2026, and the manual name on the tin isxe_bo_read(9). consider that the cute lil signature at the bottom of the letter π
and that's the page!! go read some buffer objects, bestie, u got this ππ π₯
π¦ 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