<!--
{
  "availability" : [
    "DriverKit: 27.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoDriverKit",
  "identifier" : "/documentation/VideoDriverKit/IOUserVideoBox/AddDevice",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VideoDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserVideoBox@F@AddDevice#*$@S@IOUserVideoDevice#"
  },
  "title" : "AddDevice"
}
-->

# AddDevice

Adds a video device to the video box.

```
kern_return_t AddDevice(IOUserVideoDevice *in_device);
```

## Parameters

`in_device`

IOUserVideoDevice associated with the box.

## Return Value

`kIOReturnSuccess` if device was successfully added.

## Discussion

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

---

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)