From bcc894b69d0d9a1a6f14ad7bd613808cc9f22ef7 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sun, 11 Dec 2016 16:11:42 +0100 Subject: VM: make vm_wire more POSIX-friendly * doc/mach.texi: Update return codes. * vm/vm_map.c (vm_map_pageable_common): Return KERN_NO_SPACE instead of KERN_FAILURE if some of the specified address range does not correspond to mapped pages. Skip unwired entries instead of failing when unwiring. --- doc/mach.texi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/mach.texi b/doc/mach.texi index 99ee8548..d2b88d1f 100644 --- a/doc/mach.texi +++ b/doc/mach.texi @@ -3261,10 +3261,8 @@ The function returns @code{KERN_SUCCESS} if the call succeeded, @code{KERN_INVALID_HOST} if @var{host} was not a valid host port, @code{KERN_INVALID_TASK} if @var{task} was not a valid task, @code{KERN_INVALID_VALUE} if @var{access} specified an invalid access -mode, @code{KERN_FAILURE} if some memory in the specified range is not -present or has an inappropriate protection value, and -@code{KERN_INVALID_ARGUMENT} if unwiring (@var{access} is -@code{VM_PROT_NONE}) and the memory is not already wired. +mode, and @code{KERN_NO_SPACE} if some memory in the specified range +is not present or has an inappropriate protection value. The @code{vm_wire} call is actually an RPC to @var{host}, normally a send right for a privileged host port, but potentially any send right. -- cgit v1.2.3