VirturlAlloc internally call SC_VirtualAlloc.
As you know that this api take parameters like the desired address of area assigned and size of file and flags related to action on the region given and access type on the region.
Now I will explain only the use case in which it will give the desired result not the else part.
;)
It start with checking the desired address whether it is inside kernel address and also check for access type and action on region whether it's supported or not.
Check if the request region is under secure VA. If not then calculate the base address of the region assigned just by left shifting the address asked for. Now check the address that it's come under first mapper add or not if yes then check for the process to check the remotely memory is accessed by the current process.
Now check for the allocate type.
Now check whether the request is for slot 0. If yes then take the 64k booundary. and check for the free region.
To check for NULL block.
If the request is not for Slot 0 then use filesystem to reserve the region.
Check the condition like requested region is more than 32MB then find the continuous memory.
* Still Not Completed
No comments:
Post a Comment
Please add your valuable feedback and suggestion...
Note: Only a member of this blog may post a comment.