---
title: relinquish()
framework: System
role: symbol
role_heading: Instance Method
platforms: [iOS 17.4+, iPadOS 17.4+, Mac Catalyst 17.4+, macOS 14.4+, tvOS 17.4+, visionOS 1.0+, watchOS 10.4+]
path: system/mach/port/relinquish()-241tg
---

# relinquish()

Transfer ownership of the underlying port right to the caller.

## Declaration

```swift
consuming func relinquish() -> mach_port_name_t
```

## Discussion

Discussion Returns the Mach port name representing the right. This operation liberates the right from management by the Mach.Port, and the underlying right will no longer be automatically deallocated. After this function completes, the Mach.Port is destroyed and no longer usable.
