---
title: getReport
framework: hiddriverkit
role: symbol
role_heading: Instance Method
path: hiddriverkit/iouserusbhosthiddevice/getreport-6stqs
---

# getReport

Gets a report from the HID device.

## Declaration

```occ
virtual kern_return_t getReport(IOMemoryDescriptor *report, IOHIDReportType reportType, IOOptionBits options, uint32_t completionTimeout, OSAction *action);
```

## Parameters

- `report`: A memory descriptor that contains the report from the HID device.
- `reportType`: The report type.
- `options`: The lower 8 bits of the report ID. The other 24 bits are options to specify the request.
- `completionTimeout`: The amount of time, in milliseconds, after which to abort the command if the entire command hasn’t completed.
- `action`: The function to call when the request completes. If you omit this function, the method executes synchronously, blocking the current thread until the request completes.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

## See Also

### Managing Device Reports

- [newReportDescriptor](hiddriverkit/iouserusbhosthiddevice/newreportdescriptor.md)
- [getReport](hiddriverkit/iouserusbhosthiddevice/getreport-2v8zk.md)
- [setReport](hiddriverkit/iouserusbhosthiddevice/setreport.md)
- [initInputReport](hiddriverkit/iouserusbhosthiddevice/initinputreport.md)
- [CompleteInputReport](hiddriverkit/iouserusbhosthiddevice/completeinputreport.md)
- [scheduleInputReportRetry](hiddriverkit/iouserusbhosthiddevice/scheduleinputreportretry.md)
- [cancelInputReportRetry](hiddriverkit/iouserusbhosthiddevice/cancelinputreportretry.md)
- [TimerOccurred](hiddriverkit/iouserusbhosthiddevice/timeroccurred.md)
