Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Dos Protected Mode Interface - <b>mark page as demand paging candidate</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
        Mark Page as Demand Paging Candidate


                 This function  is used  to inform  the operating system
                 that a  range of  pages should be placed at the head of
                 the page  out candidate  list.   This will  force these
                 pages to  be swapped  to disk ahead of other pages even
                 if the memory has been accessed recently.  However, all
                 memory contents will be preserved.

                 This is  useful, for example, if a program knows that a
                 given piece  of data  will not  be accessed  for a long
                 period of  time.   That data  is ideal  for swapping to
                 disk since  the physical  memory it now occupies can be
                 used for other purposes.

            To Call

                 AX = 0702h
                 BX:CX = Starting linear address of pages to mark
                 SI:DI = Number of bytes to mark as paging candidates

            Returns

                 If function was successful:
                 Carry flag is clear.

                 If function was not successful:
                 Carry flag is set.

            Programmer's Notes

                 o    This function  does not  force  the  pages  to  be
                      swapped to disk immediately.
                 o    Partial pages will not be discarded.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson