---
name: "OF_package_to_path"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/OF_package_to_path/9freebsd"
---

# OF\_package\_to\_path(9freebsd)

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*⟩.
