Re:Adding 16 KB Page Size to Android
by alephr on Saturday August 24, 2024 @06:52AM
(#41337190)
this is no longer true with MapViewOfFile3: Third time's a charm, now you can map to page boundaries
[ Parent
| on HN ]
Re:Adding 16 KB Page Size to Android
by mananaysiempre on Saturday August 24, 2024 @07:10AM
(#41337275)
TIL about MapViewOfFile3 and NtMapViewOfSectionEx, thanks! Still, the Microsoft docs say[1]:
> [in, optional] BaseAddress
> The desired base address of the view (the address is rounded down to the nearest 64k boundary).
> [...]
> [in] Offset
> The offset from the beginning of the section.
> The offset must be 64k aligned.
The peculiar part is where base address and offset must be divisible by 64K (also referred to as the “allocation granularity”) but the size only needs to be divisible by the page size. Maybe you’re right and the docs are wrong?..
[1] https://learn.microsoft.com/en-us/windows/win32/api/memoryap...