summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-03 18:51:49 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-03 18:51:49 +0000
commit5f4b8ddda0f01e59b9a20c8e7558b0b9e6ead89d (patch)
treeabfd642912929a2b9b6349a3725344b248777dd8 /ufs
parent086642b5729a3643f1cf3aed368740c340fa1fbe (diff)
Initial revision
Diffstat (limited to 'ufs')
-rw-r--r--ufs/mapbuf.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/ufs/mapbuf.c b/ufs/mapbuf.c
new file mode 100644
index 00000000..a323bdbc
--- /dev/null
+++ b/ufs/mapbuf.c
@@ -0,0 +1,33 @@
+/* Cache mappings of the disk
+ Copyright (C) 1994 Free Software Foundation, Inc.
+ Written by Michael I. Bushnell.
+
+ This file is part of the GNU Hurd.
+
+ The GNU Hurd is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ The GNU Hurd is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+
+#include "ufs.h"
+
+#define MAXMAPMEM (1024 * 1024 * 1024) /* one Gb */
+
+struct mapbuf
+{
+ vm_size_t length;
+ vm_offset_t diskaddr;
+};
+
+void *
+map_region