PUBLIC API (CONSTANTS)(9)
π Public API (constants) π
okay bestie, this is the constants page from the Kernel API Manual, section 9 β and itβs honestly giving βtiny but importantβ energy. letβs get into it β¨
.. c:macro:: PVR_DEVICE_PAGE_SIZE
This is the fixed page size that leaf nodes reference in the page table tree structure. In the current implementation, this value is pegged to the CPU page size (PAGE_SIZE). So it is therefore an error to specify a CPU page size which is not also a supported device page size. no cap, that part matters π
The supported device page sizes are: 4KiB, 16KiB, 64KiB, 256KiB, 1MiB and 2MiB. periodt π
.. c:macro:: PVR_DEVICE_PAGE_SHIFT
This is the shift value used to efficiently multiply or divide by PVR_DEVICE_PAGE_SIZE. iconic behavior, honestly.
This value is derived from PVR_DEVICE_PAGE_SIZE.
.. c:macro:: PVR_DEVICE_PAGE_MASK
This is the mask used to round a value down to the nearest multiple of PVR_DEVICE_PAGE_SIZE. When bitwise negated, it will indicate whether a value is already a multiple of PVR_DEVICE_PAGE_SIZE. lowkey elegant π¦
This value is derived from PVR_DEVICE_PAGE_SIZE.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/imagination/pvr_mmu.hβ Page table index utilities (constants)(9)
mwah π β source/version: ./drivers/gpu/drm/imagination, date: October 2026, page: Public API (constants)(9). go off, constants bestie π«Άβ¨
π¦ 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