---
title: synchronizeCache
framework: kernel
role: pseudoSymbol
path: kernel/iomedia/1813702-synchronizecache
---

# synchronizeCache

## Declaration

```occ
virtual IOReturn synchronizeCache(
 IOService *client); 
```

## Parameters

- `client`: Client requesting the cache synchronization.

## Return Value

Return Value Returns the status of the cache synchronization.

## Overview

Overview Flush the cached data in the storage object, if any, synchronously.

## See Also

### Miscellaneous

- [copyPhysicalExtent](kernel/iomedia/1813424-copyphysicalextent.md)
- [getAttributes](kernel/iomedia/1813444-getattributes.md)
- [getBase](kernel/iomedia/1813468-getbase.md)
- [getContent](kernel/iomedia/1813495-getcontent.md)
- [getContentHint](kernel/iomedia/1813522-getcontenthint.md)
- [getPreferredBlockSize](kernel/iomedia/1813553-getpreferredblocksize.md)
- [getSize](kernel/iomedia/1813585-getsize.md)
- [handleClose](kernel/iomedia/1813614-handleclose.md)
- [handleIsOpen](kernel/iomedia/1813630-handleisopen.md)
- [handleOpen](kernel/iomedia/1813647-handleopen.md)
- [init](kernel/iomedia/1813657-init.md)
- [isEjectable](kernel/iomedia/1813664-isejectable.md)
- [isFormatted](kernel/iomedia/1813670-isformatted.md)
- [isWhole](kernel/iomedia/1813677-iswhole.md)
- [isWritable](kernel/iomedia/1813683-iswritable.md)
- [lockPhysicalExtents](kernel/iomedia/1813689-lockphysicalextents.md)
- [read](kernel/iomedia/1813696-read.md)
- [unlockPhysicalExtents](kernel/iomedia/1813710-unlockphysicalextents.md)
- [unmap](kernel/iomedia/1813719-unmap.md)
- [write](kernel/iomedia/1813725-write.md)
