---
title: unmap
framework: kernel
role: pseudoSymbol
path: kernel/iofilterscheme/1811266-unmap
---

# unmap

## Declaration

```occ
virtual IOReturn unmap(
 IOService *client, 
 IOStorageExtent *extents, 
 UInt32extentsCount, 
 UInt32 options = 0); 
```

## Parameters

- `client`: Client requesting the operation.
- `extents`: List of extents. See IOStorageExtent. It is legal for the callee to overwrite the contents of this buffer in order to satisfy the request.
- `extentsCount`: Number of extents.

## Return Value

Return Value Returns the status of the operation.

## Overview

Overview Delete unused data from the storage object at the specified byte offsets, synchronously.

## See Also

### Miscellaneous

- [copyPhysicalExtent](kernel/iofilterscheme/1811149-copyphysicalextent.md)
- [handleClose](kernel/iofilterscheme/1811170-handleclose.md)
- [handleIsOpen](kernel/iofilterscheme/1811193-handleisopen.md)
- [handleOpen](kernel/iofilterscheme/1811211-handleopen.md)
- [lockPhysicalExtents](kernel/iofilterscheme/1811226-lockphysicalextents.md)
- [read](kernel/iofilterscheme/1811238-read.md)
- [synchronizeCache](kernel/iofilterscheme/1811248-synchronizecache.md)
- [unlockPhysicalExtents](kernel/iofilterscheme/1811258-unlockphysicalextents.md)
- [write](kernel/iofilterscheme/1811274-write.md)
