Creates a CFMachPort object with a new Mach port.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
kto use the current default allocator.
The callback function invoked when a message is received on the new Mach port.
A structure holding contextual information for the new Mach port. The function copies the information out of the structure, so the memory pointed to by
contextdoes not need to persist beyond the function call.
A flag set by the function to indicate whether the
contextshould be freed. The flag is set to
The new CFMachPort object or
NULL on failure. The CFMachPort object has both send and receive rights. Ownership follows the The Create Rule.