<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDisplayIOServicePort(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGDisplayIOServicePort"
  },
  "title" : "CGDisplayIOServicePort(_:)"
}
-->

# CGDisplayIOServicePort(_:)

Returns the I/O Kit service port of the specified display.

```
func CGDisplayIOServicePort(_ display: CGDirectDisplayID) -> io_service_t
```

## Parameters

`display`

The identifier of the display to be accessed.

## Return Value

The I/O Kit service port for the specified display.

## Discussion

An I/O Kit service port can be passed to I/O Kit to obtain additional information about the display.

The port is owned by the graphics system and should not be destroyed.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)