diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-05-20 23:01:30 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-05-20 23:01:30 +0000 |
commit | 74a2473c3fe2ff3736bf12fe67b6d09f0445d6a6 (patch) | |
tree | 37af485333a8a1927d62e18f50f45f29c0c54e10 /libpager | |
parent | 07d6cd77376586ced3f82578cff845dcc4f906d3 (diff) |
Formerly pager.h.~7~
Diffstat (limited to 'libpager')
-rw-r--r-- | libpager/pager.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libpager/pager.h b/libpager/pager.h index efb6ea3f..79270aa6 100644 --- a/libpager/pager.h +++ b/libpager/pager.h @@ -66,6 +66,16 @@ pager_flush_some (struct pager *pager, vm_size_t len, int wait); +/* Change the attributes of the memory object underlying pager PAGER. + Args MAY_CACHE and COPY_STRATEGY are as for + memory_object_change_atributes. Wait for the kernel to report completion + off WAIT is set.*/ +void +pager_change_attributes (struct pager *pager, + boolean_t may_cache, + memory_object_copy_strategy_t copy_strategy, + int wait); + /* Return the port (receive right) for requests to the pager. It is absolutely necessary that a new send right be created from this receive right. */ @@ -112,6 +122,13 @@ pager_unreference (struct pager *p); to allocate_port by the pager system. */ extern int pager_port_type; +/* The user must define this function. Describe for pager PAGER + the may_cache and copy_strategy attributes for memory_object_ready. */ +void +pager_report_attributes (struct user_pager_info *pager, + boolean_t *may_cache, + memory_object_copy_strategy_t *copy_strategy); + /* The user must define this function. For pager PAGER, read one page from offset PAGE. Set *BUF to be the address of the page, and set *WRITE_LOCK if the page must be provided read-only. @@ -122,7 +139,6 @@ pager_read_page (struct user_pager_info *pager, vm_address_t *buf, int *write_lock); - /* The user must define this function. For pager PAGER, synchronously write one page from BUF to offset PAGE. In addition, vm_deallocate (or equivalent) BUF. The only permissable error returns are EIO, |