/*
* Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
*
- * @APPLE_LICENSE_HEADER_START@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
- * compliance with the License. Please obtain a copy of the License at
- * http://www.opensource.apple.com/apsl/ and read it before using this
- * file.
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* Please see the License for the specific language governing rights and
* limitations under the License.
*
- * @APPLE_LICENSE_HEADER_END@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
/*
* @OSF_FREE_COPYRIGHT@
#include <mach/mach_types.defs>
#include <mach_debug/mach_debug_types.defs>
+#if !KERNEL && !LIBSYSCALL_INTERFACE
+#define PREFIX(NAME) _kernelrpc_ ## NAME
+#else
+#define PREFIX(NAME) NAME
+#endif
+
/*
* Returns information about the contents of the virtual
* address space of the target task at the specified
* of the specified size. The address at which the
* allocation actually took place is returned.
*/
-routine vm_allocate(
+
+#if !KERNEL && !LIBSYSCALL_INTERFACE
+skip;
+#else
+routine PREFIX(vm_allocate)(
target_task : vm_task_entry_t;
inout address : vm_address_t;
size : vm_size_t;
flags : int);
+#endif
+
/*
* Deallocate the specified range from the virtual
* address space of the target task.
*/
-routine vm_deallocate(
+
+#if !KERNEL && !LIBSYSCALL_INTERFACE
+skip;
+#else
+routine PREFIX(vm_deallocate)(
target_task : vm_task_entry_t;
address : vm_address_t;
size : vm_size_t);
+#endif
+
/*
* Set the current or maximum protection attribute
* for the specified range of the virtual address
* Protections are specified as a set of {read, write, execute}
* *permissions*.
*/
-routine vm_protect(
+
+#if !KERNEL && !LIBSYSCALL_INTERFACE
+skip;
+#else
+routine PREFIX(vm_protect)(
target_task : vm_task_entry_t;
address : vm_address_t;
size : vm_size_t;
set_maximum : boolean_t;
new_protection : vm_prot_t);
+#endif
/*
* Set the inheritance attribute for the specified range
* and must be a multiple of pages in extent. The
* protection on the specified range must permit reading.]
*/
-routine vm_read(
+routine PREFIX(vm_read) (
target_task : vm_map_t;
address : vm_address_t;
size : vm_size_t;
* The user-defined memory manager for this object is responsible
* for further consistency.]
*/
-routine vm_map(
+routine PREFIX(vm_map) (
target_task : vm_task_entry_t;
inout address : vm_address_t;
size : vm_size_t;
/*
* Map portion of a task's address space.
*/
-routine vm_remap(
+routine PREFIX(vm_remap) (
target_task : vm_map_t;
inout target_address : vm_address_t;
size : vm_size_t;
mask : vm_address_t;
- anywhere : boolean_t;
+ flags : int;
src_task : vm_map_t;
src_address : vm_address_t;
copy : boolean_t;
*/
routine vm_map_get_upl(
target_task : vm_map_t;
- address : vm_address_t;
+ address : vm_map_offset_t;
inout size : vm_size_t;
out upl : upl_t;
out page_info : upl_page_info_array_t, CountInOut;
control : vm_purgable_t;
inout state : int);
-
+/* vim: set ft=c : */