<!--
{
  "availability" : [
    "DriverKit: 21.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BlockStorageDeviceDriverKit",
  "identifier" : "/documentation/BlockStorageDeviceDriverKit/BlockRange",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "BlockStorageDeviceDriverKit"
    ],
    "preciseIdentifier" : "c:@S@BlockRange"
  },
  "title" : "BlockRange"
}
-->

# BlockRange

A structure that represents a range of blocks.

```
struct BlockRange;
```

## Discussion

The pure virtual function `_DoAsyncUnmap`, which your dext must implement, takes this type as a parameter that indicates the blocks to unmap.

## Topics

### Accessing Block Range Properties

[`uint64_t startBlock;`](/documentation/BlockStorageDeviceDriverKit/BlockRange/startBlock)

The address of the first block in this range.

[`uint64_t numOfBlocks;`](/documentation/BlockStorageDeviceDriverKit/BlockRange/numOfBlocks)

The number of blocks in this range.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)