---
title: SetName
framework: audiodriverkit
role: symbol
role_heading: Instance Method
path: audiodriverkit/iouseraudiodriver/setname
---

# SetName

Sets the name of the driver.

## Declaration

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

## Parameters

- `in_name`: The name to set, as an doc://com.apple.documentation/documentation/DriverKit/OSString.

## Return Value

Return Value kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

## Discussion

Discussion If the change succeeds, the framework sends a notification to the host to update its object state. Setting the name synchronizes by using the work queue created by the object.

## See Also

### Getting Information About the Class

- [GetClassID](audiodriverkit/iouseraudiodriver/getclassid.md)
- [GetBaseClassID](audiodriverkit/iouseraudiodriver/getbaseclassid.md)
- [IOUserAudioClassID](audiodriverkit/audiodriverkit/iouseraudioclassid.md)
- [GetWorkQueue](audiodriverkit/iouseraudiodriver/getworkqueue.md)
- [GetName](audiodriverkit/iouseraudiodriver/getname.md)
