---
title: AddClockDevice
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideobox/addclockdevice
---

# AddClockDevice

Adds a clock device video box.

## Declaration

```occ
kern_return_t AddClockDevice(IOUserVideoClockDevice *in_clock_device);
```

## Parameters

- `in_clock_device`: IOUserVideoClockDevice associated with the box.

## Return Value

Return Value kIOReturnSuccess if device was successfully added.

## Discussion

Discussion The box doesn’t own the clock device. The clock device’s reference count will be incremented if it was successfully added.

## See Also

### Managing box contents

- [AddDevice](videodriverkit/iouservideobox/adddevice.md)
- [RemoveDevice](videodriverkit/iouservideobox/removedevice.md)
- [IOUserVideoDevice](videodriverkit/iouservideodevice.md)
- [RemoveClockDevice](videodriverkit/iouservideobox/removeclockdevice.md)
- [IOUserVideoClockDevice](videodriverkit/iouservideoclockdevice.md)
