---
title: lockPhysicalExtents
framework: kernel
role: pseudoSymbol
path: kernel/iostorage/1810985-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

- [complete](kernel/iostorage/1810767-complete.md)
- [copyPhysicalExtent](kernel/iostorage/1810820-copyphysicalextent.md)
- [handleClose](kernel/iostorage/1810866-handleclose.md)
- [handleIsOpen](kernel/iostorage/1810905-handleisopen.md)
- [handleOpen](kernel/iostorage/1810948-handleopen.md)
- [open](kernel/iostorage/1811013-open.md)
- [read()](kernel/iostorage/1811038-read.md)
- [read()](kernel/iostorage/1811068-read.md)
- [synchronizeCache](kernel/iostorage/1811091-synchronizecache.md)
- [unlockPhysicalExtents](kernel/iostorage/1811117-unlockphysicalextents.md)
- [unmap](kernel/iostorage/1811145-unmap.md)
- [write()](kernel/iostorage/1811168-write.md)
- [write()](kernel/iostorage/1811185-write.md)
