PAGE TABLE INDEX UTILITIES (CONSTANTS)(9)
๐ธ Page table index utilities ๐ธ
okay bestie, you're reading the Kernel API Manual page for Page table index utilities โ manual name (constants)(9). It's a constants page, and it's lowkey carrying the whole address-space vibe โจ๐
.
๐ PVR_PAGE_TABLE_ADDR_SPACE_SIZE ๐
This one is the size of the device-virtual address space that can be represented in the page table structure. ๐ซถ
This value is checked at runtime against pvr_device_features.virtual_address_space_bits by pvr_vm_create_context, which will return an error if the feature value does not match this constant. ๐จ
๐ ๏ธ Future work ๐ ๏ธ
It should be possible to support other values of pvr_device_features.virtual_address_space_bits, but so far no hardware has been created which advertises an unsupported value. That's the whole "one day, maybe" corner ๐.
โญ PVR_PAGE_TABLE_ADDR_BITS โญ
Number of bits needed to represent any value less than PVR_PAGE_TABLE_ADDR_SPACE_SIZE exactly. Math girlie behavior, fr fr ๐งฎโจ.
๐ฆ PVR_PAGE_TABLE_ADDR_MASK ๐ฆ
Bitmask of device-virtual addresses which are valid in the page table structure. ๐ฏ
This value is derived from PVR_PAGE_TABLE_ADDR_SPACE_SIZE, so the same notes on that constant apply here. iykyk ๐
๐ SEE ALSO ๐
- Kernel file
./drivers/gpu/drm/imagination/pvr_mmu.h - Public API
(constants)(9)
xoxo, your kernel bestie ๐
โ source/version: ./drivers/gpu/drm/imagination, dated October 2026, with the footer label Page table i... (constants)(9). slay and read your headers ๐ซถ๐
๐ฆ 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