pvr_gem_object_create(9)
π pvr_gem_object_create(9) β PowerVR buffer object creation, but make it make sense π
okay so welcome to the pvr_gem_object_create(9) page in the Kernel API Manual β yes bestie, we're creating a PowerVR-specific buffer object and we're gonna be normal about it (lie). This is the function that gets a new buffer object born into the world, and the vibes are immaculate.
β¨ NAME β¨
pvr_gem_object_create β Creates a PowerVR-specific buffer object. That's it, that's the main character energy.
π«Ά SYNOPSIS π«Ά
struct pvr_gem_object * pvr_gem_object_create (struct pvr_device
*pvr_dev , size_t size , u64 flags );
No cap, that's the whole call. Let's meet the arguments.
π ARGUMENTS π
pvr_devβ Target PowerVR device. This is the device you're doing the whole operation for.sizeβ Size of the object to allocate in bytes. Must be greater than zero. Any value which is not an exact multiple of the system page size will be rounded up to satisfy this condition. So yeah, page-size rounding is part of the deal, not a bug.flagsβ Options which affect both this operation and future mapping operations performed on the returned object. Must be a combination ofDRM_PVR_BO_*and/orPVR_BO_*flags.
π¦ DESCRIPTION π¦
The created object may be larger than size, but can never be smaller. To get the exact size, call pvr_gem_object_size on the returned pointer. That's the lowkey important part β don't assume size is the final size, bestie.
πΈ RETURN πΈ
- The newly-minted PowerVR-specific buffer object on success,
-EINVALifsizeis zero orflagsis not valid,-ENOMEMif sufficient physical memory cannot be allocated, or- Any other error returned by
drm_gem_create_mmap_offset.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/imagination/pvr_gem.c pvr_gem_object_flags_validate(9)pvr_gem_object_into_handle(9)pvr_gem_object_from_handle(9)pvr_gem_object_vmap(9)pvr_gem_object_vunmap(9)pvr_gem_object_zero(9)pvr_gem_create_object(9)pvr_gem_get_dma_addr(9)
okay bye bestie π β source/version: ./drivers/gpu/drm/imagination Β· date: October 2026 Β· page: pvr_gem_object_create(9) β¨
π¦ 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