From 9a6c730f2736080cdac2cfddf6797bdf1bfa8ec9 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 17 Jul 1997 20:08:55 +0000 Subject: (struct store_class): Add map field. (store_map): New declaration. --- libstore/store.h | 18 +++++++++--------- 1 file 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 -- cgit v1.2.3