xe_sa_bo_init(9)
xe_sa_bo_init(9) π
okay so we're in the Kernel API Manual bestie, and this page is all about xe_sa_bo_init. she's a little function, she does one job, and honestly? she ate. π
β¨ NAME β¨
xe_sa_bo_init β initialize a suballocation. that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
int xe_sa_bo_init (struct xe_sa_manager *sa_manager , struct
drm_suballoc *sa , size_t size );
three things go in, an int comes out. classic. π₯
π ARGUMENTS π
sa_managerβ pointer to thesa_manager. yes she's a pointer, yes you gotta hand her over, no you can't skip her. πsaβ Thestruct drm_suballoc. the actual suballoc star of the show, main character energy fr fr. βsizeβ number of bytes we want to suballocate. how much room do you need? say it with your chest. π
π§ DESCRIPTION π§
Try to make a suballocation on a pre-allocated suballoc object of size size. that's the whole bit β it's a try, so don't act surprised if it doesn't always work out, that's literally what the return value is for, iykyk. π
π RETURN π
zero on success, errno on failure. that's it. 0 = slay, errno = π.
π«Ά SEE ALSO π«Ά
Kernel file ./drivers/gpu/drm/xe/xe_sa.c β go read her, she's iconic:
__xe_sa_bo_manager_init(9)xe_sa_bo_swap_shadow(9)xe_sa_bo_sync_shadow(9)__xe_sa_bo_new(9)xe_sa_bo_alloc(9)xe_sa_bo_flush_write(9)xe_sa_bo_sync_read(9)
bestie reminder: xe_sa_bo_init is a try, so always check that return value. zero on success, errno on failure. no cap. π
and that's the page!! shoutout to ./drivers/gpu/drm/xe for the source/version, dated October 2026, filed under xe_sa_bo_init(9). periodt. πβ¨
π¦ 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