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

# SetName

Sets the name of the video driver.

```
kern_return_t SetName(OSString *in_name);
```

## Parameters

`in_name`

An OSString name to set.

## Return Value

A kern_return_t value indicating success or failure.

## Discussion

If the object can change the name dynamically, the object sends a notification
to the host to update the object state on success.
The object’s work queue synchronizes access to this value.

---

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)