PUBLIC API (CONSTANTS)(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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