<!--
{
  "availability" : [
    "DriverKit: -"
  ],
  "documentType" : "symbol",
  "framework" : "SCSIControllerDriverKit",
  "identifier" : "/documentation/SCSIControllerDriverKit/IOUserSCSIParallelInterfaceController/UserReportHBAHighestLogicalUnitNumber",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SCSIControllerDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserSCSIParallelInterfaceController@F@UserReportHBAHighestLogicalUnitNumber#*k#"
  },
  "title" : "UserReportHBAHighestLogicalUnitNumber"
}
-->

# UserReportHBAHighestLogicalUnitNumber

Gets the highest logical unit number (LUN) in response to a call from the framework.

```
virtual kern_return_t UserReportHBAHighestLogicalUnitNumber(uint64_t *value);
```

## Parameters

`value`

A pointer to a `uint64_t` value. On return, set this value to the highest LUN the controller can address.

## Return Value

A value that indicates the result of determining the highest LUN. <doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> indicates success. For error definitions, see <doc://com.apple.documentation/documentation/iokit/iokit_constants>.

## Discussion

The framework calls this method to query the driver extension class to determine the highest logical unit number that the controller can address.

---

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)