This function is declared in the coresrv/vmm/vmm_api.h file.
Retcode KnVmProtect(void *addr, rtl_size_t size, int newFlags);
Modifies the protection attributes of reserved or committed memory pages.
Parameters:
addr is the page-aligned base virtual address of the memory area.size is the size of the memory area in bytes (must be a multiple of the page size).newFlags refers to new protection attributes.If the protection attributes are successfully changed, the function returns rcOk.
Permissible combinations of memory protection attributes: