Server Interface - Forward a client's request to synchronize data with its image in backing store.
kern_return_t memory_object_synchronize (memory_object_t memory_object, memory_object_control_t memory_control, vm_offset_t offset, vm_offset_t length, memory_object sync_flags); kern_return_t seqnos_memory_object_synchronize (memory_object_t memory_object, mach_port_seqno_t seqno, memory_object_control_t memory_control, vm_offset_t offset, vm_offset_t length, memory_object sync_flags);
A memory_object_synchronize function is called as the result of a kernel message indicating that a client wishes to synchronize the contents of a range of a memory object with its backing storage image. This message would have been preceded by memory_object_data_return messages cleaning or flushing the specified range.
Depending on the client's supplied sync_flags, the manager waits for the pages to reach the desired state and then replies with memory_object_synchronize_completed at which time the client returns from its vm_msync call. Multiple synchronize requests may be outstanding at a time but they will not overlap.
Only generic errors apply.
Functions: vm_msync, memory_object_synchronize_completed, memory_object_data_return, memory_object_server, seqnos_memory_object_server.