---
title: Mach.Port
framework: System
role: symbol
role_heading: Structure
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
---

# Mach.Port

## Declaration

```swift
struct Port<RightType> where RightType : MachPortRight
```

## Topics

### Initializers

- [init()](system/mach/port/init().md)
- [init(name:)](system/mach/port/init(name:).md)
- [init(name:context:)](system/mach/port/init(name:context:)-14mp9.md)
- [init(name:context:)](system/mach/port/init(name:context:)-oyjl.md)

### Instance Properties

- [makeSendCount](system/mach/port/makesendcount.md)

### Instance Methods

- [copySendRight()](system/mach/port/copysendright().md)
- [makeSendOnceRight()](system/mach/port/makesendonceright().md)
- [makeSendRight()](system/mach/port/makesendright().md)
- [relinquish()](system/mach/port/relinquish()-241tg.md)
- [relinquish()](system/mach/port/relinquish()-70vbe.md)
- [relinquish()](system/mach/port/relinquish()-74amu.md)
- [relinquish()](system/mach/port/relinquish()-9lm56.md)
- [unguardAndRelinquish()](system/mach/port/unguardandrelinquish().md)
- [withBorrowedName(body:)](system/mach/port/withborrowedname(body:)-4d4iq.md)
- [withBorrowedName(body:)](system/mach/port/withborrowedname(body:)-8402i.md)
- [withBorrowedName(body:)](system/mach/port/withborrowedname(body:)-9v68k.md)
