xe_bo_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, this is xe_bo_alloc(9) from the Kernel API Manual, and it has one very specific job: allocate storage for a struct xe_bo. That’s the whole name vibe. πŸ’…

✨ SYNOPSIS ✨

struct xe_bo * xe_bo_alloc (void );

🌸 ARGUMENTS 🌸

  • void β€” no arguments. literally none. empty pockets, zero receipts. 🫢

πŸ’– DESCRIPTION πŸ’–

So here’s the tea: this function is intended to allocate storage to be used for input to __xe_bo_create_locked, in the case a pointer to the bo to be created is needed before the call to __xe_bo_create_locked.

And if __xe_bo_create_locked ends up never to be called? Then the storage allocated with this function needs to be freed using xe_bo_free. Not optional, bestie β€” that’s the cleanup arc, fr fr. 🧚

πŸ”₯ RETURN πŸ”₯

  • On success, you get a pointer to an uninitialized struct xe_bo. 🫢
  • On error, you get ERR_PTR(-ENOMEM). πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/gpu/drm/xe/xe_bo.c β€” and here’s the whole friend group, no cap:


mwah πŸ’‹ that’s the page, bestie. source/version: ./drivers/gpu/drm/xe; date: October 2026; manual: xe_bo_alloc(9). periodt. 🌈

πŸ“¦ where this page comes from