---
title: setNotificationPort
framework: kernel
role: pseudoSymbol
path: kernel/iodataqueue/1810994-setnotificationport
---

# setNotificationPort

Creates a simple mach message targeting the mach port specified in port.

## Declaration

```occ
virtual void setNotificationPort(
 mach_port_tport); 
```

## Parameters

- `port`: The mach port to target with the notification message.

## Overview

Overview This message is sent when data is added to an empty queue. It is to notify a user process that new data has become available.

## See Also

### Miscellaneous

- [enqueue](kernel/iodataqueue/1810927-enqueue.md)
- [getMemoryDescriptor](kernel/iodataqueue/1810939-getmemorydescriptor.md)
- [initWithCapacity](kernel/iodataqueue/1810950-initwithcapacity.md)
- [initWithEntries](kernel/iodataqueue/1810963-initwithentries.md)
- [sendDataAvailableNotification](kernel/iodataqueue/1810980-senddataavailablenotification.md)
- [withCapacity](kernel/iodataqueue/1811001-withcapacity.md)
- [withEntries](kernel/iodataqueue/1811020-withentries.md)
