|
Member |
|
Joined: Thu Mar 25, 2010 11:26 pm Posts: 1801 Location: Melbourne, Australia
|
In my OS the sequence goes like this
1. Application Code 2. Page Fault 3. Kernel Page Fault Handler
At this point the kernel checks whether it has the page or not. If not it modifies the kernel state of the original app so that it appears that the app sent a message to the VFS asking for a page from the file that it is trying to load. It then adds the app to the message queue of the VFS. From the VFS point of view the message is a 'read' message from a file that was opened when mmap was originally called.
4. VFS. 5. User Mode Hard Disk Driver etc. 6. VFS replies with data 7. App is unblocked and resumes.
_________________ If a trainstation is where trains stop, what is a workstation ?
|
|