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

# GetName

Returns the name of the queue as a C string.

## Declaration

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

## 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

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