---
title: "IORegistryEntryCopyFromPath(_:_:)"
framework: IOKit
role: symbol
role_heading: Function
platforms: [iOS 9.0+, iPadOS 9.0+, Mac Catalyst 13.1+, macOS 10.11+, visionOS 1.0+]
path: iokit/1514248-ioregistryentrycopyfrompath
---

# IORegistryEntryCopyFromPath(_:_:)

## Declaration

```swift
func IORegistryEntryCopyFromPath(_ mainPort: mach_port_t, _ path: CFString!) -> io_registry_entry_t
```
