From b08c0190511a921a352549d691f17e91a000493c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 24 Mar 2002 01:11:58 +0000 Subject: 2002-03-23 Roland McGrath * default_pager.defs (default_pager_object_set_size): New RPC. * default_pager_reply.defs: New file. --- hurd/default_pager.defs | 9 +++++++++ hurd/default_pager_reply.defs | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 hurd/default_pager_reply.defs (limited to 'hurd') diff --git a/hurd/default_pager.defs b/hurd/default_pager.defs index effcd7d7..7b1549a0 100644 --- a/hurd/default_pager.defs +++ b/hurd/default_pager.defs @@ -85,3 +85,12 @@ routine default_pager_paging_storage( array[] of recnum_t; name : default_pager_filename_t; add : boolean_t); + +/* This call is made on a memory object returned by default_pager_object_create + to fix the object's maximum size. Any references to pages beyond the limit + will fail. */ +routine default_pager_object_set_size( + memory_object : mach_port_t; + sreplyport reply_port : mach_port_send_once_t; + msgseqno seqno : mach_port_seqno_t; + object_size_limit : vm_size_t); diff --git a/hurd/default_pager_reply.defs b/hurd/default_pager_reply.defs new file mode 100644 index 00000000..0f9ff86b --- /dev/null +++ b/hurd/default_pager_reply.defs @@ -0,0 +1,17 @@ +/* Reply half of default_pager.defs. */ + +subsystem default_pager_reply 2375; /* 2275 + 100 */ + +#include + +skip; /* default_pager_object_create */ +skip; /* default_pager_info */ +skip; /* default_pager_objects */ +skip; /* default_pager_object_pages */ +skip; /* default_pager_paging_file */ +skip; /* default_pager_register_fileserver */ +skip; /* default_pager_paging_storage */ + +simpleroutine default_pager_object_set_size_reply( + reply_port: mach_port_send_once_t; + RETURN_CODE_ARG); -- cgit v1.2.3