---
title: lockPhysicalExtents
framework: kernel
role: pseudoSymbol
path: kernel/iofilterscheme/1811226-lockphysicalextents
---

# lockPhysicalExtents

## Declaration

```occ
virtual bool lockPhysicalExtents(
 IOService *client); 
```

## Parameters

- `client`: Client requesting the operation.

## Return Value

Return Value Returns true if the lock was successful, false otherwise.

## Overview

Overview Lock the contents of the storage object against relocation temporarily, for the purpose of getting physical extents.

## 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)
- [read](kernel/iofilterscheme/1811238-read.md)
- [synchronizeCache](kernel/iofilterscheme/1811248-synchronizecache.md)
- [unlockPhysicalExtents](kernel/iofilterscheme/1811258-unlockphysicalextents.md)
- [unmap](kernel/iofilterscheme/1811266-unmap.md)
- [write](kernel/iofilterscheme/1811274-write.md)
