intel_guc_al..._and_map_vma(9)
π intel_guc_al..._and_map_vma(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're reading kernel docs together, this is our bonding time now π«Ά
β¨ NAME β¨
intel_guc_allocate_and_map_vma β it allocates and maps a VMA for GuC usage. Two jobs, one function, main character energy fr fr π
πΈ SYNOPSIS πΈ
int intel_guc_allocate_and_map_vma (struct intel_guc *guc , u32 size ,
struct i915_vma **out_vma , void **out_vaddr );
like, look at her. four arguments, one int coming back. iconic π
π ARGUMENTS π
gucβ the guc. that's it, that's the whole description, and honestly? she said what she said π (it's thestruct intel_guc *you're working with, iykyk)sizeβ size of area to allocate β and listen, that's both virtual space and memory, so don't be out here thinking it's just one of them π§out_vmaβ return variable for the allocated vma pointer. yes it's an out-param, yes you gotta pass it in, no you don't get to skip it πout_vaddrβ return variable for the obj mapping. also an out-param. also mandatory. we love a duo π
π¦ DESCRIPTION π¦
so the way that this works is β this wrapper calls intel_guc_allocate_vma and then maps the allocated object with I915_MAP_WB.
that's it. that's the whole vibe. allocate, then map, with I915_MAP_WB specifically, no cap π― it's literally just the convenience wrapper doing the two-step for you so you don't have to β¨
β RETURN β
0if successful π- a negative errno code otherwise π
so like, check your return value. always. be responsible bestie π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/i915/gt/uc/intel_guc.c GuC(9)intel_guc_auth_huc(9)intel_guc_suspend(9)intel_guc_resume(9)GuC Memory Management(9)intel_guc_allocate_vma(9)intel_guc_load_status(9)
go read them. all of them. this is your homework now ππ
tiny reminder bestie: everything above is exactly what the page says β i'm just here to make it cute, not to invent new behaviour π
and that's a wrap, bb! π this gem lives in ./drivers/gpu/drm/i915/gt/uc and it's dated October 2026, so go forth, allocate responsibly, and slay π
β¨π
π¦ 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