psb_gem_fault(9)
β¨ NAME β¨
Okay so bestie, welcome to the Kernel API Manual entry for psb_gem_fault(9) β and the name is literally giving pagefault handler for GEM objects. Thatβs the whole assignment, no cap. π
π SYNOPSIS π
vm_fault_t psb_gem_fault (struct vm_fault *vmf );
πΈ ARGUMENTS πΈ
vmfβ the fault detail. Thatβs the whole little argument moment, slay. π¦
π¦ DESCRIPTION π¦
So this handler gets invoked when a fault happens on an mmap of a GEM managed area. GEM is out here doing most of the work for us β including the actual map/unmap calls β but we still have to do the actual page work. Iconic division of labor, honestly. β¨
This code eventually needs to handle faulting objects in and out of the GTT and repacking it when we run out of space. We can put that off for now β and, like, for our simple uses. π
The VMA was set up by GEM. And in doing so, it also made sure that vma->vm_private_data points to the GEM object that is backing this mapping. Main character pointer energy, fr fr. π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/gma500/gem.c psb_gem_dumb_create(9)
This cutie is brought to you by the source/version path ./drivers/gpu/drm/gma500, stamped October 2026. π«Άππ
π¦ 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