osfmk/man/MO_SY_completed.html
Function - Inform the kernel that synchronized data has been processed.
**kern\_return\_t memory\_object\_synchronize\_completed** **(memory\_object\_control\_t**memory\_control, **vm\_offset\_t** offset, **vm\_offset\_t** length**);**
memory_control[in memory-cache-control send right] The memory cache control port to be used by the memory manager for cache management requests. This port is provided by the kernel in a memory_object_init call.
offset[in scalar] The offset within the memory object, in bytes.
length[in scalar] The amount of data processed. The number must be an integral number of memory object pages.
The memory_object_synchronize_completed function informs the kernel that previously synchronized data ( memory_object_synchronize ) has been queued or placed on backing storage. This reply causes the issuing client to return from its vm_msync call. The offset and length must match that of the corresponding memory_object_synchronize call. There may be multiple synchronize requests for a given memory object outstanding but they will not overlap.
Only generic errors apply.
Functions: memory_object_data_return, memory_object_synchronize, vm_msync.