---
title: initWith
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iohistogramreporter/initwith
---

# initWith

## Declaration

```occ
bool initWith(IOService *reportingService, IOReportCategories categories, uint64_t channelID, const char *channelName, IOReportUnit unit, int nSegments, IOHistogramSegmentConfig *config);
```

## See Also

### Instance Methods

- [addChannel](driverkit/iohistogramreporter/addchannel.md)
- [overrideBucketValues](driverkit/iohistogramreporter/overridebucketvalues.md)
- [tallyValue](driverkit/iohistogramreporter/tallyvalue.md)
