---
title: lockPhysicalExtents
framework: kernel
role: pseudoSymbol
path: kernel/iopartitionscheme/1810387-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/iopartitionscheme/1810278-copyphysicalextent.md)
- [handleClose](kernel/iopartitionscheme/1810310-handleclose.md)
- [handleIsOpen](kernel/iopartitionscheme/1810337-handleisopen.md)
- [handleOpen](kernel/iopartitionscheme/1810366-handleopen.md)
- [read](kernel/iopartitionscheme/1810409-read.md)
- [synchronizeCache](kernel/iopartitionscheme/1810446-synchronizecache.md)
- [unlockPhysicalExtents](kernel/iopartitionscheme/1810496-unlockphysicalextents.md)
- [unmap](kernel/iopartitionscheme/1810548-unmap.md)
- [write](kernel/iopartitionscheme/1810601-write.md)
