---
title: SetName
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideodriver/setname
---

# SetName

Sets the name of the video driver.

## Declaration

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

## Parameters

- `in_name`: An OSString name to set.

## Return Value

Return Value A kern_return_t value indicating success or failure.

## Discussion

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.

## See Also

### Getting information about the class

- [GetClassID](videodriverkit/iouservideodriver/getclassid.md)
- [GetBaseClassID](videodriverkit/iouservideodriver/getbaseclassid.md)
- [IOUserVideoClassID](videodriverkit/videodriverkit/iouservideoclassid.md)
- [GetWorkQueue](videodriverkit/iouservideodriver/getworkqueue.md)
- [GetName](videodriverkit/iouservideodriver/getname.md)
