summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-02-28 08:33:04 +0000
committerRoland McGrath <roland@gnu.org>2001-02-28 08:33:04 +0000
commitb2aedc4300e34368940d91e18f547f25e900173a (patch)
treeddcacfe96b3bc238f565aaa051421ae42a8788a5 /hurd
parentb75c9c8a4690aafee4487dba0f55dde3b86f01c8 (diff)
2001-01-11 Marcus Brinkmann <marcus@gnu.org>
* default_pager_types.h: New file. default_pager.defs: Import <default_pager_types.h>. 2000-12-28 Roland McGrath <roland@frob.com> * default_pager.defs: New file, modified from the original version in <mach/default_pager.defs>. Adds new RPC, obsoletes an unused one. It is compatible enough that it doesn't really matter which version things use unless they are using the new RPC.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/default_pager.defs87
1 files changed, 87 insertions, 0 deletions
diff --git a/hurd/default_pager.defs b/hurd/default_pager.defs
new file mode 100644
index 00000000..effcd7d7
--- /dev/null
+++ b/hurd/default_pager.defs
@@ -0,0 +1,87 @@
+/* -*- C -*-
+ Version of <mach/default_pager.defs> modified for Hurd implementation.
+*/
+/*
+ * Mach Operating System
+ * Copyright (c) 1991,1990,1989 Carnegie Mellon University
+ * All Rights Reserved.
+ *
+ * Permission to use, copy, modify and distribute this software and its
+ * documentation is hereby granted, provided that both the copyright
+ * notice and this permission notice appear in all copies of the
+ * software, derivative works or modified versions, and any portions
+ * thereof, and that both notices appear in supporting documentation.
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
+ * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
+ *
+ * Carnegie Mellon requests users of this software to return to
+ *
+ * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
+ * School of Computer Science
+ * Carnegie Mellon University
+ * Pittsburgh PA 15213-3890
+ *
+ * any improvements or extensions that they make and grant Carnegie Mellon
+ * the rights to redistribute these changes.
+ */
+
+subsystem default_pager 2275;
+
+#include <mach/std_types.defs>
+#include <mach/mach_types.defs>
+#include <mach/default_pager_types.defs>
+#include <device/device_types.defs>
+
+import <hurd/default_pager_types.h>; /* XXX */
+
+routine default_pager_object_create(
+ default_pager : mach_port_t;
+ out memory_object : memory_object_t =
+ MACH_MSG_TYPE_MAKE_SEND;
+ object_size : vm_size_t);
+
+routine default_pager_info(
+ default_pager : mach_port_t;
+ out info : default_pager_info_t);
+
+routine default_pager_objects(
+ default_pager : mach_port_t;
+ out objects : default_pager_object_array_t,
+ CountInOut, Dealloc;
+ out ports : mach_port_array_t =
+ array[] of mach_port_move_send_t,
+ CountInOut, Dealloc);
+
+routine default_pager_object_pages(
+ default_pager : mach_port_t;
+ memory_object : memory_object_name_t;
+ out pages : default_pager_page_array_t,
+ CountInOut, Dealloc);
+
+/* This is the original Mach call, now deprecated in favor
+ of default_pager_paging_storage. */
+routine default_pager_paging_file(
+ default_pager : mach_port_t;
+ master_device_port : mach_port_t;
+ filename : default_pager_filename_t;
+ add : boolean_t);
+
+skip; /* default_pager_register_fileserver */
+
+/* Add or remove an area of paging storage, which is a subset of the
+ Mach device for which device_open returned DEVICE_PORT. The area
+ consists of the concatenation of contiguous regions described by
+ RUNS. Each even-numbered element of RUNS gives the starting record
+ number of a region whose length is given by the next odd-numbered
+ element. NAME is used in any diagnostics the default pager prints
+ about device errors when paging. When removing a paging area, NAME
+ and RUNS must match exactly. */
+routine default_pager_paging_storage(
+ default_pager : mach_port_t;
+ device_port : mach_port_t;
+ runs : recnum_array_t =
+ array[] of recnum_t;
+ name : default_pager_filename_t;
+ add : boolean_t);