---
title: GetName
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iodispatchqueue/getname
---

# GetName

Returns the name of the queue as a C string.

## Declaration

```occ
const char * GetName();
```

## Return Value

Return Value A C-string pointer to the queue’s internal storage.

## Discussion

Discussion Returns a pointer to the queue’s name. This string is valid only while the queue is retained.

## See Also

### Getting Queue Information

- [OnQueue](driverkit/iodispatchqueue/onqueue.md)
- [IODispatchQueueName](driverkit/iodispatchqueuename.md)
