---
name: "OF_package_to_path"
section: "9"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/OF_package_to_path"
---

# OF\_package\_to\_path(9)

get fully qualified path to a device tree node

## NAME

**OF\_package\_to\_path** – get fully qualified path to a device tree node

## SYNOPSIS

**#include \<dev/ofw/ofw\_bus.h\>**

**#include \<dev/ofw/ofw\_bus\_subr.h\>**

*ssize\_t*\

**OF\_package\_to\_path**(*phandle\_t node*, *char \*buf*, *size\_t len*);

## DESCRIPTION

**OF\_package\_to\_path**() copies at most *len* bytes of the fully qualified path to the device tree node *node* into the memory specified by *buf*. The function returns the number of bytes copied or -1 in case of the error.

## SEE ALSO

[OF\_finddevice(9)](/OF_finddevice/9.md)

## AUTHORS

This manual page was written by Oleksandr Tymoshenko ⟨*gonzo@FreeBSD.org*⟩.
