summaryrefslogtreecommitdiff
path: root/libdiskfs/diskfs.h
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-08 08:42:56 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-08 08:42:56 +0000
commitbd1306f7f3c4441bbb057b031f251e2f31317d79 (patch)
treeb589e9ba67b8bf6cace1ead0de4295e3faaecf0d /libdiskfs/diskfs.h
parent6c70c6d345509bf6690b4443ba36974d2c6a147b (diff)
1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>
* io-map-segment.c: New file. Guts from io-map.c. * io-map.c (diskfs_S_io_map): Just call diskfs_S_io_map_segment. * diskfs.h (diskfs_get_filemap): New parameter `index'. * rdwr-internal.c (_diskfs_rdwr_internal): Pass additional parameter to diskfs_get_filemap. * Makefile (IOSRCS): Add io-map-segment.c.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r--libdiskfs/diskfs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 73c55faf..499bfd5b 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -486,10 +486,11 @@ void diskfs_sync_everything (int wait);
irreversable. */
void diskfs_shutdown_pager ();
-/* The user must define this function. Return a memory object port (send
- right) for the file contents of NP. PROT is the maximum allowable
- access. On errors, return MACH_PORT_NULL and set errno. */
-mach_port_t diskfs_get_filemap (struct node *np, vm_prot_t prot);
+/* The user must define this function. Return a memory object port
+ (send right) for the INDEX'th 2^32 byte segment of the contents of
+ NP. PROT is the maximum allowable access. On errors, return
+ MACH_PORT_NULL and set errno. */
+mach_port_t diskfs_get_filemap (struct node *np, int index, vm_prot_t prot);
/* The user must define this function. Return true if there are pager
ports exported that might be in use by users. If this returns false, then