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

# SetClockAlgorithm

Sets the algorithm for the video clock device.

```
kern_return_t SetClockAlgorithm(IOUserVideoClockAlgorithm in_clock_algorithm);
```

## Parameters

`in_clock_algorithm`

The IOUserVideoClockAlgorithm value to set.

## Return Value

A kern_return_t value indicating success or failure.

## Discussion

Drivers can change the clock algorithm of the clock device dynamically. If successful, the clock device sends a notification
to the host to update the object state.

---

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)