Name
Swap -- Swapping system.
Description
This functions serve to get process pages in and out of the swap device.
Details
MEM_swap_init ()
void MEM_swap_init (void); |
Gets things ready to be able to swap memory in and out.
MEM_swapout_page ()
void MEM_swapout_page (gint pid,
gint page); |
Writes page from Proces' pid virtual memory address space from memory
into a free block in the swap device.
MEM_swapin_page ()
void MEM_swapin_page (gint pid,
gint page,
guint32 set_flags); |
Reads page from Proces' pid virtual memory address space into memory from
the swap device
If the page has never been swapped out we will suppose it is in the
first free swap block and request an IO access to it.
If the page is already swaping in then we will take note of
set_flags and let it be.