Contents

IODataQueueSetNotificationPort(_:_:)

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

Declaration

func IODataQueueSetNotificationPort(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>!, _ notifyPort: mach_port_t) -> IOReturn

Parameters

  • dataQueue:

    The IODataQueueMemory region mapped from the kernel created from an IOSharedDataQueue.

  • notifyPort:

    The mach port to target with the notification message.

Return Value

Returns kIOReturnSuccess on success. Returns kIOReturnBadArgument if either dataQueue is 0 (NULL).

Discussion

This message is sent when data is added to an empty queue. It is to notify another user process that new data has become available. Please note that using this method without mapped memory create from an IOSharedDataQueue will result in undefined behavior.

See Also

Miscellaneous