summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-07-17 20:08:55 +0000
committerMiles Bader <miles@gnu.org>1997-07-17 20:08:55 +0000
commit9a6c730f2736080cdac2cfddf6797bdf1bfa8ec9 (patch)
treee00e21edb82067aef38efd4dace8248bab6b9ece
parent5ff7fb2c0249895d2b3639454f1d34797f6813c5 (diff)
(struct store_class):
Add map field. (store_map): New declaration.
-rw-r--r--libstore/store.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libstore/store.h b/libstore/store.h
index 32844a11..1a7fe2a0 100644
--- a/libstore/store.h
+++ b/libstore/store.h
@@ -195,6 +195,9 @@ struct store_class
OPEN function, then validity can't be syntactically determined. */
error_t (*validate_name) (const char *name,
const struct store_class *const *classes);
+
+ /* Return a memory object paging on STORE. */
+ error_t (*map) (const struct store *store, vm_prot_t prot, mach_port_t *memobj);
};
/* Return a new store in STORE, which refers to the storage underlying SOURCE.
@@ -302,25 +305,22 @@ error_t store_read (struct store *store,
source from which it was created. */
void store_close_source (struct store *store);
-#if 0
+/* Return a memory object paging on STORE. If this call fails with
+ EOPNOTSUPP, you can try calling some of the routines below to get a pager. */
+error_t store_map (const struct store *store, vm_prot_t prot, mach_port_t *memobj);
-/* Return a memory object paging on STORE. [among other reasons,] this may
- fail because store contains non-contiguous regions on the underlying
- object. In such a case you can try calling some of the routines below to
- get a pager. */
-error_t store_map (struct store *store, vm_prot_t prot, ...,
- mach_port_t *pager);
+#if 0
/* Returns a memory object paging on the file from which STORE was created.
If STORE wasn't created using store_create, or the source was destroyed
using store_close_source, this will fail. */
error_t store_map_source (struct store *store, vm_prot_t prot, ...,
- mach_port_t *pager)
+ mach_port_t *memobj)
/* Create a new pager and paging threads paging on STORE, and return the
resulting memory object in PAGER. */
error_t store_create_pager (struct store *store, vm_prot_t prot, ...,
- mach_port_t *pager)
+ mach_port_t *memobj)
#endif