Programming for Memory Management

Hi I am relatively new to programming on UNIX platform. I was wondering if there is any system call so that a process can access systems page table or swap pages from main memory by specifying the page number. I am trying to implement various page replacement algorithms like LRU, OPT, FIFO etc. Please let me know if you think of any other way for implementing the same other than accessing actual page table.

-Jay

UNIX system calls do not provide access to that way.

Each different kernel has internal modules that can do these things. If you are in Linux, for example, you can download the kernel, and modify it if you want. You can also create user mode access to the syscalls in question.

Linux has the syscall interface -

http://www.digilife.be/quickreferences/QRC/LINUX%20System%20Call%20Quick%20Reference.pdf