-kern_return_t vm_swap_put(vm_offset_t, uint64_t*, uint64_t, c_segment_t);
+
+
+struct swapout_io_completion {
+ int swp_io_busy;
+ int swp_io_done;
+ int swp_io_error;
+
+ uint32_t swp_c_size;
+ c_segment_t swp_c_seg;
+
+ struct swapfile *swp_swf;
+ uint64_t swp_f_offset;
+
+ struct upl_io_completion swp_upl_ctx;
+};
+void vm_swapout_iodone(void *, int);
+
+
+static void vm_swapout_finish(c_segment_t, uint64_t, uint32_t, kern_return_t);
+kern_return_t vm_swap_put_finish(struct swapfile *, uint64_t *, int);
+kern_return_t vm_swap_put(vm_offset_t, uint64_t*, uint32_t, c_segment_t, struct swapout_io_completion *);
+