+extern kern_return_t
+iokit_client_memory_for_type(
+ io_object_t connect,
+ unsigned int type,
+ unsigned int * flags,
+ vm_address_t * address,
+ vm_size_t * size );
+
+/*
+ * Functions in osfmk:iokit_rpc.c
+ */
+
+extern ipc_port_t iokit_alloc_object_port( io_object_t obj,
+ ipc_kobject_type_t type );
+
+extern kern_return_t iokit_destroy_object_port( ipc_port_t port );
+
+extern mach_port_name_t iokit_make_send_right( task_t task,
+ io_object_t obj, ipc_kobject_type_t type );
+
+extern mach_port_t ipc_port_make_send(mach_port_t);
+extern mach_port_t ipc_port_copy_send(mach_port_t);
+extern void ipc_port_release_send(ipc_port_t port);
+
+extern io_object_t iokit_lookup_io_object(ipc_port_t port, ipc_kobject_type_t type);
+
+extern kern_return_t iokit_mod_send_right( task_t task, mach_port_name_t name, mach_port_delta_t delta );
+
+extern io_object_t iokit_lookup_object_with_port_name(mach_port_name_t name, ipc_kobject_type_t type, task_t task);
+
+extern io_object_t iokit_lookup_connect_ref_current_task(mach_port_name_t name);
+extern io_object_t iokit_lookup_uext_ref_current_task(mach_port_name_t name);
+
+extern void iokit_retain_port( ipc_port_t port );
+extern void iokit_release_port( ipc_port_t port );
+extern void iokit_release_port_send( ipc_port_t port );
+
+extern void iokit_lock_port(ipc_port_t port);
+extern void iokit_unlock_port(ipc_port_t port);
+
+extern kern_return_t iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type );
+
+#ifndef MACH_KERNEL_PRIVATE
+typedef struct ipc_kmsg * ipc_kmsg_t;
+extern ipc_kmsg_t ipc_kmsg_alloc(size_t);
+extern void ipc_kmsg_destroy(ipc_kmsg_t);
+extern mach_msg_header_t * ipc_kmsg_msg_header(ipc_kmsg_t);
+#endif /* MACH_KERNEL_PRIVATE */
+
+extern kern_return_t
+uext_server(ipc_kmsg_t request, ipc_kmsg_t * preply);
+
+extern kern_return_t
+iokit_label_dext_task(task_t task);
+
+/*
+ * Functions imported by iokit:IOMemoryDescriptor.cpp
+ */
+
+extern ppnum_t IOGetLastPageNumber(void);
+
+extern kern_return_t IOMapPages(vm_map_t map, mach_vm_address_t va, mach_vm_address_t pa,
+ mach_vm_size_t length, unsigned int mapFlags);
+
+extern kern_return_t IOUnmapPages(vm_map_t map, mach_vm_address_t va, mach_vm_size_t length);
+
+extern kern_return_t IOProtectCacheMode(vm_map_t map, mach_vm_address_t va,
+ mach_vm_size_t length, unsigned int options);
+
+extern unsigned int IODefaultCacheBits(addr64_t pa);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* __cplusplus */
+
+#endif /* MACH_KERNEL_PRIVATE */
+
+#endif /* ! _IOKIT_IOKITSERVER_H */