<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOReportLegend",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOReportLegend"
  },
  "title" : "IOReportLegend"
}
-->

# IOReportLegend

```
class IOReportLegend;
```

## Topics

### Instance Methods

[`IOReturn addLegendEntry(IOReportLegendEntry *legendEntry, const char *groupName, const char *subGroupName);`](/documentation/DriverKit/IOReportLegend/addLegendEntry)

[`IOReturn addReporterLegend(IOReporter *reporter, const char *groupName, const char *subGroupName);`](/documentation/DriverKit/IOReportLegend/addReporterLegend-c.method)

[`virtual void free();`](/documentation/DriverKit/IOReportLegend/free)

[`OSArray * getLegend();`](/documentation/DriverKit/IOReportLegend/getLegend)

### Type Methods

[`static IOReturn addReporterLegend(IOService *reportingService, IOReporter *reporter, const char *groupName, const char *subGroupName);`](/documentation/DriverKit/IOReportLegend/addReporterLegend-c.type.method)

[`static IOReportLegend * with(OSArray *legend);`](/documentation/DriverKit/IOReportLegend/with)

## Relationships

### Inherits From

[`OSObject`](/documentation/DriverKit/OSObject)

---

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)